open-nomad/ui/app/routes/clients/index.js

14 lines
427 B
JavaScript
Raw Normal View History

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 class IndexRoute extends Route.extend(WithWatchers) {
startWatchers(controller) {
2019-03-26 07:46:44 +00:00
controller.set('watcher', this.watch.perform());
}
@watchAll('node') watch;
@collect('watch') watchers;
}