open-nomad/ui/app/routes/jobs/job.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

16 lines
293 B
JavaScript

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);
});
},
});