mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): disable trigger node execution pinning toolip for schedule nodes (#4334)
fix(editor): do not show trigger node execution pinning toolip for schedule nodes
This commit is contained in:
parent
27d04062f5
commit
d4b74bd66a
|
@ -126,6 +126,9 @@ export default mixins(
|
|||
NodeIcon,
|
||||
},
|
||||
computed: {
|
||||
isScheduledGroup (): boolean {
|
||||
return this.nodeType?.group.includes('schedule') === true;
|
||||
},
|
||||
nodeRunData(): ITaskData[] {
|
||||
return this.$store.getters.getWorkflowResultDataByNodeName(this.data.name);
|
||||
},
|
||||
|
@ -375,14 +378,12 @@ export default mixins(
|
|||
},
|
||||
methods: {
|
||||
showPinDataDiscoveryTooltip(dataItemsCount: number): void {
|
||||
if (!this.isTriggerNode) { return; }
|
||||
if (!this.isTriggerNode || this.isScheduledGroup || dataItemsCount === 0) return;
|
||||
|
||||
if (dataItemsCount > 0) {
|
||||
localStorage.setItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, 'true');
|
||||
|
||||
this.pinDataDiscoveryTooltipVisible = true;
|
||||
this.unwatchWorkflowDataItems();
|
||||
}
|
||||
},
|
||||
setSubtitle() {
|
||||
const nodeSubtitle = this.getNodeSubtitle(this.data, this.nodeType, this.getCurrentWorkflow()) || '';
|
||||
|
|
Loading…
Reference in a new issue