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