Skip to content

Commit

Permalink
fix: Prevent displaying an endless timer in the execution list for fi…
Browse files Browse the repository at this point in the history
…nished executions (#6137)
  • Loading branch information
krynble authored Apr 28, 2023
1 parent 90a62cc commit 701105e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/editor-ui/src/components/ExecutionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down
1 change: 1 addition & 0 deletions packages/editor-ui/src/plugins/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 701105e

Please sign in to comment.