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
|
|
|
|
|
|
|
model() {
|
2021-12-28 16:08:12 +00:00
|
|
|
return this.store
|
|
|
|
.query('plugin', { type: 'csi' })
|
|
|
|
.catch(notifyForbidden(this));
|
2020-06-11 21:23:00 +00:00
|
|
|
}
|
|
|
|
}
|