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

20 lines
508 B
JavaScript
Raw Normal View History

import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
import WithForbiddenState from 'nomad-ui/mixins/with-forbidden-state';
import notifyForbidden from 'nomad-ui/utils/notify-forbidden';
export default Route.extend(WithForbiddenState, {
store: service(),
breadcrumbs: Object.freeze([
{
label: 'Storage',
args: ['csi.index'],
},
]),
model() {
return this.store.query('plugin', { type: 'csi' }).catch(notifyForbidden(this));
},
});