open-nomad/ui/app/routes/csi/plugins.js
Buck Doyle cd11cd290c Add manually-converted classes
I don’t know why the codemod ignored these files 🧐
2020-06-15 10:14:26 -05:00

20 lines
531 B
JavaScript

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 class PluginsRoute extends Route.extend(WithForbiddenState) {
@service store;
breadcrumbs = Object.freeze([
{
label: 'Storage',
args: ['csi.index'],
},
]);
model() {
return this.store.query('plugin', { type: 'csi' }).catch(notifyForbidden(this));
}
}