github.com/hernad/nomad@v1.6.112/ui/app/routes/csi/plugins.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import { inject as service } from '@ember/service'; 7 import Route from '@ember/routing/route'; 8 import WithForbiddenState from 'nomad-ui/mixins/with-forbidden-state'; 9 import notifyForbidden from 'nomad-ui/utils/notify-forbidden'; 10 11 export default class PluginsRoute extends Route.extend(WithForbiddenState) { 12 @service store; 13 14 model() { 15 return this.store 16 .query('plugin', { type: 'csi' }) 17 .catch(notifyForbidden(this)); 18 } 19 }