d509588cd2
Ember update - update ember-cli, ember-data, and ember to 3.4 series
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__);
|
|
});
|