github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/routes/policies/policy.js (about) 1 import Route from '@ember/routing/route'; 2 import withForbiddenState from 'nomad-ui/mixins/with-forbidden-state'; 3 import WithModelErrorHandling from 'nomad-ui/mixins/with-model-error-handling'; 4 import { inject as service } from '@ember/service'; 5 6 export default class PoliciesPolicyRoute extends Route.extend( 7 withForbiddenState, 8 WithModelErrorHandling 9 ) { 10 @service store; 11 model(params) { 12 return this.store.findRecord('policy', decodeURIComponent(params.name), { 13 reload: true, 14 }); 15 } 16 }