mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
🐛 Hide trigger tooltip for polling nodes (#2547)
* hide trigger tooltip for polling nodes * fix spacing
This commit is contained in:
parent
1d05185c4a
commit
75c7b5ed97
|
@ -123,6 +123,9 @@ export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).ext
|
|||
return `Waiting for you to create an event in ${this.nodeType && this.nodeType.displayName.replace(/Trigger/, "")}`;
|
||||
}
|
||||
},
|
||||
isPollingTypeNode (): boolean {
|
||||
return !!(this.nodeType && this.nodeType.polling);
|
||||
},
|
||||
isExecuting (): boolean {
|
||||
return this.$store.getters.executingNode === this.data.name;
|
||||
},
|
||||
|
@ -243,7 +246,16 @@ export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).ext
|
|||
return !!(this.nodeType && this.nodeType.outputs.length > 2);
|
||||
},
|
||||
shouldShowTriggerTooltip () : boolean {
|
||||
return !!this.node && this.workflowRunning && this.workflowDataItems === 0 && this.isTriggerNode && this.isSingleActiveTriggerNode && !this.isTriggerNodeTooltipEmpty && !this.isNodeDisabled && !this.hasIssues && !this.dragging;
|
||||
return !!this.node &&
|
||||
this.isTriggerNode &&
|
||||
!this.isPollingTypeNode &&
|
||||
!this.isNodeDisabled &&
|
||||
this.workflowRunning &&
|
||||
this.workflowDataItems === 0 &&
|
||||
this.isSingleActiveTriggerNode &&
|
||||
!this.isTriggerNodeTooltipEmpty &&
|
||||
!this.hasIssues &&
|
||||
!this.dragging;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
|
|
Loading…
Reference in a new issue