From 75c7b5ed97ae1917a42f7f7376e44d941762925e Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Date: Fri, 10 Dec 2021 14:48:56 +0100 Subject: [PATCH] :bug: Hide trigger tooltip for polling nodes (#2547) * hide trigger tooltip for polling nodes * fix spacing --- packages/editor-ui/src/components/Node.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/Node.vue b/packages/editor-ui/src/components/Node.vue index 96f57696e6..1d015c75ff 100644 --- a/packages/editor-ui/src/components/Node.vue +++ b/packages/editor-ui/src/components/Node.vue @@ -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: {