mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
rewrite
This commit is contained in:
parent
8120dca277
commit
6a4fbd8a3f
|
@ -82,12 +82,13 @@ export default mixins(
|
|||
return '#13ce66';
|
||||
},
|
||||
disabled(): boolean {
|
||||
const isCurrentWorkflow = this.$store.getters['workflowId'] !== this.workflowId;
|
||||
if (this.workflowId && isCurrentWorkflow) {
|
||||
return false;
|
||||
const isNewWorkflow = !this.workflowId;
|
||||
const openWorkflow = this.$store.getters['workflowId'];
|
||||
if (isNewWorkflow || openWorkflow === this.workflowId) {
|
||||
return !this.workflowActive && !this.containsTrigger;
|
||||
}
|
||||
|
||||
return !this.workflowActive && !this.containsTrigger;
|
||||
return false;
|
||||
},
|
||||
containsTrigger(): boolean {
|
||||
const foundTriggers = this.$store.getters.workflowTriggerNodes
|
||||
|
|
Loading…
Reference in a new issue