fix: Prevent displaying an endless timer in the execution list for finished executions (#6137)

This commit is contained in:
Omar Ajoue 2023-04-28 17:18:16 +02:00 committed by GitHub
parent 90a62ccfb5
commit 701105edcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -800,16 +800,16 @@ export default mixins(externalHooks, genericHelpers, executionHelpers, showMessa
path = 'executionsList.statusWaiting';
} else if (status === 'canceled') {
path = 'executionsList.statusCanceled';
} else if (status === 'crashed') {
path = 'executionsList.statusText';
} else if (['crashed', 'failed', 'success'].includes(status)) {
if (!entry.stoppedAt) {
path = 'executionsList.statusTextWithoutTime';
} else {
path = 'executionsList.statusText';
}
} else if (status === 'new') {
path = 'executionsList.statusRunning';
} else if (status === 'running') {
path = 'executionsList.statusRunning';
} else if (status === 'success') {
path = 'executionsList.statusText';
} else if (status === 'failed') {
path = 'executionsList.statusText';
} else {
path = 'executionsList.statusUnknown';
}

View file

@ -510,6 +510,7 @@
"executionsList.status": "Status",
"executionsList.statusCanceled": "Canceled",
"executionsList.statusText": "{status} in {time}",
"executionsList.statusTextWithoutTime": "{status}",
"executionsList.statusRunning": "{status} for {time}",
"executionsList.statusWaiting": "{status} until {time}",
"executionsList.statusUnknown": "Could not complete",