mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-16 03:27:01 +02:00
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
import { run } from '@ember/runloop';
|
|
import { registerAsyncHelper } from '@ember/test';
|
|
|
|
export function pollCluster(owner) {
|
|
const clusterRoute = owner.lookup('route:vault/cluster');
|
|
return run(() => {
|
|
return clusterRoute.controller.model.reload();
|
|
});
|
|
}
|
|
|
|
registerAsyncHelper('pollCluster', function(app) {
|
|
pollCluster(app.__container__);
|
|
});
|