8541579722
This will happen when ACLs allow for reading jobs but not submitting.
22 lines
452 B
JavaScript
22 lines
452 B
JavaScript
import AbstractJobPage from './abstract';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default AbstractJobPage.extend({
|
|
store: service(),
|
|
|
|
errorMessage: '',
|
|
|
|
actions: {
|
|
forceLaunch() {
|
|
this.get('job')
|
|
.forcePeriodic()
|
|
.catch(error => {
|
|
this.set('errorMessage', `Could not force launch: ${error}`);
|
|
});
|
|
},
|
|
clearErrorMessage() {
|
|
this.set('errorMessage', '');
|
|
},
|
|
},
|
|
});
|