mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Fix stuck loading states (#3428)
This commit is contained in:
@@ -92,6 +92,9 @@ export default mixins(
|
||||
},
|
||||
computed: {
|
||||
isExecutingPrevious(): boolean {
|
||||
if (!this.workflowRunning) {
|
||||
return false;
|
||||
}
|
||||
const triggeredNode = this.$store.getters.executedNode;
|
||||
const executingNode = this.$store.getters.executingNode;
|
||||
if (this.activeNode && triggeredNode === this.activeNode.name && this.activeNode.name !== executingNode) {
|
||||
@@ -103,6 +106,9 @@ export default mixins(
|
||||
}
|
||||
return false;
|
||||
},
|
||||
workflowRunning (): boolean {
|
||||
return this.$store.getters.isActionActive('workflowRunning');
|
||||
},
|
||||
currentWorkflow(): Workflow {
|
||||
return this.workflow as Workflow;
|
||||
},
|
||||
|
||||
@@ -50,7 +50,7 @@ export default mixins(
|
||||
nodeRunning (): boolean {
|
||||
const triggeredNode = this.$store.getters.executedNode;
|
||||
const executingNode = this.$store.getters.executingNode;
|
||||
return executingNode === this.node.name || triggeredNode === this.node.name;
|
||||
return this.workflowRunning && (executingNode === this.node.name || triggeredNode === this.node.name);
|
||||
},
|
||||
workflowRunning (): boolean {
|
||||
return this.$store.getters.isActionActive('workflowRunning');
|
||||
|
||||
Reference in New Issue
Block a user