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

23 lines
349 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({
system: inject.service(),
2017-09-19 14:47:10 +00:00
store: inject.service(),
beforeModel() {
return this.get('system.namespaces');
},
2017-09-19 14:47:10 +00:00
model() {
return this.get('store').findAll('job');
},
actions: {
refreshRoute() {
this.refresh();
},
},
2017-09-19 14:47:10 +00:00
});