open-nomad/ui/app/routes/csi/plugins/index.js

14 lines
451 B
JavaScript
Raw Normal View History

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';
export default class IndexRoute extends Route.extend(WithWatchers) {
startWatchers(controller) {
controller.set('modelWatch', this.watch.perform({ type: 'csi' }));
}
@watchQuery('plugin') watch;
@collect('watch') watchers;
}