open-nomad/ui/app/routes/clients/index.js
2019-04-10 14:54:36 -07:00

14 lines
405 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('watcher', this.watch.perform());
},
watch: watchAll('node'),
watchers: collect('watch'),
});