fix(editor): Fix displaying logic of execution retry button (#9061)

This commit is contained in:
Csaba Tuncsik
2024-04-09 10:25:12 +02:00
committed by GitHub
parent 610ead9a38
commit 92f6cbfba3
5 changed files with 94 additions and 12 deletions

View File

@@ -74,5 +74,12 @@ export const executionHelpers = defineComponent({
const { date, time } = convertToDisplayDate(fullDate);
return locale.baseText('executionsList.started', { interpolate: { time, date } });
},
isExecutionRetriable(execution: ExecutionSummary): boolean {
return (
['crashed', 'error'].includes(execution.status ?? '') &&
!execution.retryOf &&
!execution.retrySuccessId
);
},
},
});