open-nomad/ui/app/components/job-page/abstract.js

29 lines
601 B
JavaScript
Raw Normal View History

import Component from '@ember/component';
import { inject as service } from '@ember/service';
export default Component.extend({
system: service(),
job: null,
// Provide a value that is bound to a query param
sortProperty: null,
sortDescending: null,
// Provide actions that require routing
gotoTaskGroup() {},
gotoJob() {},
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);
},
},
});