2018-01-25 17:32:34 +00:00
|
|
|
import Component from '@ember/component';
|
2018-02-02 17:49:18 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2018-01-25 17:32:34 +00:00
|
|
|
|
|
|
|
export default Component.extend({
|
2018-02-02 17:49:18 +00:00
|
|
|
system: service(),
|
|
|
|
|
2018-01-25 17:32:34 +00:00
|
|
|
job: null,
|
|
|
|
|
|
|
|
// Provide a value that is bound to a query param
|
|
|
|
sortProperty: null,
|
|
|
|
sortDescending: null,
|
|
|
|
|
|
|
|
// Provide actions that require routing
|
|
|
|
gotoTaskGroup() {},
|
2018-01-25 22:18:53 +00:00
|
|
|
gotoJob() {},
|
2018-01-25 17:32:34 +00:00
|
|
|
|
2018-04-19 17:17:47 +00:00
|
|
|
// Set to a { title, description } to surface an error
|
|
|
|
errorMessage: null,
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
clearErrorMessage() {
|
|
|
|
this.set('errorMessage', null);
|
|
|
|
},
|
|
|
|
handleError(errorObject) {
|
|
|
|
this.set('errorMessage', errorObject);
|
|
|
|
},
|
|
|
|
},
|
2018-01-25 17:32:34 +00:00
|
|
|
});
|