2020-05-02 06:39:58 +00:00
|
|
|
import Route from '@ember/routing/route';
|
|
|
|
import { collect } from '@ember/object/computed';
|
|
|
|
import { watchQuery } from 'nomad-ui/utils/properties/watch';
|
|
|
|
import WithWatchers from 'nomad-ui/mixins/with-watchers';
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class IndexRoute extends Route.extend(WithWatchers) {
|
2020-05-02 06:39:58 +00:00
|
|
|
startWatchers(controller) {
|
|
|
|
controller.set('modelWatch', this.watch.perform({ type: 'csi' }));
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|
2020-05-02 06:39:58 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@watchQuery('plugin') watch;
|
|
|
|
@collect('watch') watchers;
|
|
|
|
}
|