c1cc51a057
This is no longer needed! https://guides.emberjs.com/release/upgrading/current-edition/native-classes/#toc_properties-and-fields
20 lines
516 B
JavaScript
20 lines
516 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 = [
|
|
{
|
|
label: 'Storage',
|
|
args: ['csi.index'],
|
|
},
|
|
];
|
|
|
|
model() {
|
|
return this.store.query('plugin', { type: 'csi' }).catch(notifyForbidden(this));
|
|
}
|
|
}
|