a79c0aa853
It's only necessary for the list view, not the entire route hierarchy
23 lines
457 B
JavaScript
23 lines
457 B
JavaScript
import Route from '@ember/routing/route';
|
|
import { watchAll } from 'nomad-ui/utils/properties/watch';
|
|
|
|
export default Route.extend({
|
|
setupController(controller) {
|
|
controller.set('modelWatch', this.get('watch').perform());
|
|
return this._super(...arguments);
|
|
},
|
|
|
|
deactivate() {
|
|
this.get('watch').cancelAll();
|
|
this._super(...arguments);
|
|
},
|
|
|
|
watch: watchAll('job'),
|
|
|
|
actions: {
|
|
refreshRoute() {
|
|
return true;
|
|
},
|
|
},
|
|
});
|