fix(core): Allow all executions to be stopped (#6386)

* allow all executions to be stopped and fix display issue

* limit cancelation and add recover for unknown states
This commit is contained in:
Michael Auerswald
2023-06-08 09:17:59 +02:00
committed by GitHub
parent 28bb797bb0
commit cc44af9243
3 changed files with 25 additions and 6 deletions

View File

@@ -44,6 +44,8 @@ export const executionHelpers = defineComponent({
if (execution.status === 'waiting' || execution.waitTill) {
status.name = 'waiting';
status.label = this.$locale.baseText('executionsList.waiting');
} else if (execution.status === 'canceled') {
status.label = this.$locale.baseText('executionsList.canceled');
} else if (
execution.status === 'running' ||
execution.status === 'new' ||
@@ -57,8 +59,6 @@ export const executionHelpers = defineComponent({
} else if (execution.status === 'failed' || execution.status === 'crashed') {
status.name = 'error';
status.label = this.$locale.baseText('executionsList.error');
} else if (execution.status === 'canceled') {
status.label = this.$locale.baseText('executionsList.canceled');
}
if (!execution.status) execution.status = 'unknown';