2018-01-25 22:18:53 +00:00
|
|
|
import AbstractJobPage from './abstract';
|
2018-01-26 22:32:11 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2020-06-10 13:49:16 +00:00
|
|
|
import { action } from '@ember/object';
|
|
|
|
import classic from 'ember-classic-decorator';
|
2018-01-25 22:18:53 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
export default class Periodic extends AbstractJobPage {
|
|
|
|
@service store;
|
2018-03-21 00:44:16 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
errorMessage = null;
|
2018-03-21 00:44:16 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@action
|
|
|
|
forceLaunch() {
|
|
|
|
this.job.forcePeriodic().catch(() => {
|
|
|
|
this.set('errorMessage', {
|
|
|
|
title: 'Could Not Force Launch',
|
|
|
|
description: 'Your ACL token does not grant permission to submit jobs.',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
@action
|
|
|
|
clearErrorMessage() {
|
|
|
|
this.set('errorMessage', null);
|
|
|
|
}
|
|
|
|
}
|