dc20fc88b9
This guarantees no privileged data is shown to unprivileged credentials
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
import Ember from 'ember';
|
|
import notifyError from 'nomad-ui/utils/notify-error';
|
|
|
|
const { Route, inject } = Ember;
|
|
|
|
export default Route.extend({
|
|
store: inject.service(),
|
|
|
|
model({ job_id }) {
|
|
return this.get('store')
|
|
.findRecord('job', job_id, { reload: true })
|
|
.catch(notifyError(this));
|
|
},
|
|
});
|