2020-05-02 06:39:58 +00:00
|
|
|
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';
|
|
|
|
|
2020-06-11 21:23:00 +00:00
|
|
|
export default class PluginsRoute extends Route.extend(WithForbiddenState) {
|
|
|
|
@service store;
|
2020-05-02 06:39:58 +00:00
|
|
|
|
2020-06-11 21:23:00 +00:00
|
|
|
breadcrumbs = Object.freeze([
|
2020-05-02 06:39:58 +00:00
|
|
|
{
|
|
|
|
label: 'Storage',
|
|
|
|
args: ['csi.index'],
|
|
|
|
},
|
2020-06-11 21:23:00 +00:00
|
|
|
]);
|
2020-05-02 06:39:58 +00:00
|
|
|
|
|
|
|
model() {
|
|
|
|
return this.store.query('plugin', { type: 'csi' }).catch(notifyForbidden(this));
|
2020-06-11 21:23:00 +00:00
|
|
|
}
|
|
|
|
}
|