mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Add 'Stop execution' button to execution preview (#4632)
* ✨ Adding `Stop execution` button to execution preview * ✨ Added execution timer for running executions * 💄 Adjusting spinner size and text color * 🔥 Removing excessive popup error message when opening failed executions preview * 🐛 Handling execution stopping when workflow is not saving manual executions
This commit is contained in:
committed by
GitHub
parent
0ade24dfaf
commit
be7672a177
@@ -725,21 +725,11 @@ export default mixins(
|
||||
}
|
||||
}
|
||||
|
||||
if (!nodeErrorFound) {
|
||||
const resultError = data.data.resultData.error;
|
||||
const errorMessage = this.$getExecutionError(data.data);
|
||||
const shouldTrack = resultError && 'node' in resultError && resultError.node!.type.startsWith('n8n-nodes-base');
|
||||
this.$showMessage({
|
||||
title: 'Failed execution',
|
||||
message: errorMessage,
|
||||
type: 'error',
|
||||
}, shouldTrack);
|
||||
if (data.data.resultData.error.stack) {
|
||||
// Display some more information for now in console to make debugging easier
|
||||
// TODO: Improve this in the future by displaying in UI
|
||||
console.error(`Execution ${executionId} error:`); // eslint-disable-line no-console
|
||||
console.error(data.data.resultData.error.stack); // eslint-disable-line no-console
|
||||
}
|
||||
if (!nodeErrorFound && data.data.resultData.error.stack) {
|
||||
// Display some more information for now in console to make debugging easier
|
||||
// TODO: Improve this in the future by displaying in UI
|
||||
console.error(`Execution ${executionId} error:`); // eslint-disable-line no-console
|
||||
console.error(data.data.resultData.error.stack); // eslint-disable-line no-console
|
||||
}
|
||||
}
|
||||
if ((data as IExecutionsSummary).waitTill) {
|
||||
|
||||
Reference in New Issue
Block a user