2017-09-19 14:47:10 +00:00
|
|
|
import Ember from 'ember';
|
|
|
|
|
|
|
|
const { Route, inject } = Ember;
|
|
|
|
|
|
|
|
export default Route.extend({
|
2017-10-10 02:00:40 +00:00
|
|
|
system: inject.service(),
|
2017-09-19 14:47:10 +00:00
|
|
|
store: inject.service(),
|
|
|
|
|
2017-10-10 02:00:40 +00:00
|
|
|
beforeModel() {
|
|
|
|
return this.get('system.namespaces');
|
|
|
|
},
|
|
|
|
|
2017-09-19 14:47:10 +00:00
|
|
|
model() {
|
|
|
|
return this.get('store').findAll('job');
|
|
|
|
},
|
2017-10-10 02:00:40 +00:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
refreshRoute() {
|
|
|
|
this.refresh();
|
|
|
|
},
|
|
|
|
},
|
2017-09-19 14:47:10 +00:00
|
|
|
});
|