github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/routes/csi/volumes/index.js (about) 1 import Route from '@ember/routing/route'; 2 import { collect } from '@ember/object/computed'; 3 import { watchQuery } from 'nomad-ui/utils/properties/watch'; 4 import WithWatchers from 'nomad-ui/mixins/with-watchers'; 5 6 export default Route.extend(WithWatchers, { 7 startWatchers(controller) { 8 controller.set('modelWatch', this.watch.perform({ type: 'csi' })); 9 }, 10 11 watch: watchQuery('volume'), 12 watchers: collect('watch'), 13 });