2017-12-15 21:39:18 +00:00
|
|
|
import Route from '@ember/routing/route';
|
2018-03-01 00:27:15 +00:00
|
|
|
import { collect } from '@ember/object/computed';
|
2018-02-28 03:55:03 +00:00
|
|
|
import { watchAll } from 'nomad-ui/utils/properties/watch';
|
2018-03-01 00:27:15 +00:00
|
|
|
import WithWatchers from 'nomad-ui/mixins/with-watchers';
|
2017-10-11 20:44:27 +00:00
|
|
|
|
2018-03-01 00:27:15 +00:00
|
|
|
export default Route.extend(WithWatchers, {
|
2018-03-06 22:27:01 +00:00
|
|
|
startWatchers(controller) {
|
2018-02-28 03:55:03 +00:00
|
|
|
controller.set('modelWatch', this.get('watch').perform());
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: watchAll('job'),
|
2018-03-01 00:27:15 +00:00
|
|
|
watchers: collect('watch'),
|
2018-02-28 03:55:03 +00:00
|
|
|
|
2017-10-20 05:04:21 +00:00
|
|
|
actions: {
|
|
|
|
refreshRoute() {
|
|
|
|
return true;
|
|
|
|
},
|
2017-10-11 20:44:27 +00:00
|
|
|
},
|
|
|
|
});
|