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

22 lines
452 B
JavaScript
Raw Normal View History

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', '');
},
},
});