github.com/manicqin/nomad@v0.9.5/ui/app/components/job-page/periodic.js (about) 1 import AbstractJobPage from './abstract'; 2 import { inject as service } from '@ember/service'; 3 4 export default AbstractJobPage.extend({ 5 store: service(), 6 7 errorMessage: null, 8 9 actions: { 10 forceLaunch() { 11 this.job 12 .forcePeriodic() 13 .catch(() => { 14 this.set('errorMessage', { 15 title: 'Could Not Force Launch', 16 description: 'Your ACL token does not grant permission to submit jobs.', 17 }); 18 }); 19 }, 20 clearErrorMessage() { 21 this.set('errorMessage', null); 22 }, 23 }, 24 });