open-nomad/ui/app/routes/jobs.js
2017-10-11 13:45:03 -07:00

23 lines
349 B
JavaScript

import Ember from 'ember';
const { Route, inject } = Ember;
export default Route.extend({
system: inject.service(),
store: inject.service(),
beforeModel() {
return this.get('system.namespaces');
},
model() {
return this.get('store').findAll('job');
},
actions: {
refreshRoute() {
this.refresh();
},
},
});