2020-03-25 12:51:26 +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-03-25 12:51:26 +00:00
|
|
|
startWatchers(controller) {
|
|
|
|
controller.set('modelWatch', this.watch.perform({ type: 'csi' }));
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|
2020-03-25 12:51:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@watchQuery('volume') watch;
|
|
|
|
@collect('watch') watchers;
|
|
|
|
}
|