open-nomad/ui/app/routes/jobs/job.js

16 lines
293 B
JavaScript
Raw Normal View History

2017-09-19 14:47:10 +00:00
import Ember from 'ember';
const { Route, inject } = Ember;
export default Route.extend({
store: inject.service(),
model({ job_id }) {
return this.get('store')
.find('job', job_id)
.then(job => {
return job.get('allocations').then(() => job);
});
},
});