open-nomad/ui/app/routes/jobs/index.js
2018-07-30 13:13:52 -07:00

14 lines
414 B
JavaScript

import Route from '@ember/routing/route';
import { collect } from '@ember/object/computed';
import { watchAll } from 'nomad-ui/utils/properties/watch';
import WithWatchers from 'nomad-ui/mixins/with-watchers';
export default Route.extend(WithWatchers, {
startWatchers(controller) {
controller.set('modelWatch', this.get('watch').perform());
},
watch: watchAll('job'),
watchers: collect('watch'),
});