github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/routes/jobs/index.js (about) 1 import Route from '@ember/routing/route'; 2 import { collect } from '@ember/object/computed'; 3 import { watchAll } from 'nomad-ui/utils/properties/watch'; 4 import WithWatchers from 'nomad-ui/mixins/with-watchers'; 5 6 export default Route.extend(WithWatchers, { 7 startWatchers(controller) { 8 controller.set('modelWatch', this.get('watch').perform()); 9 }, 10 11 watch: watchAll('job'), 12 watchers: collect('watch'), 13 14 actions: { 15 refreshRoute() { 16 return true; 17 }, 18 }, 19 });