mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -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,
|
NodeIcon,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
isScheduledGroup (): boolean {
|
||||||
|
return this.nodeType?.group.includes('schedule') === true;
|
||||||
|
},
|
||||||
nodeRunData(): ITaskData[] {
|
nodeRunData(): ITaskData[] {
|
||||||
return this.$store.getters.getWorkflowResultDataByNodeName(this.data.name);
|
return this.$store.getters.getWorkflowResultDataByNodeName(this.data.name);
|
||||||
},
|
},
|
||||||
|
@ -375,14 +378,12 @@ export default mixins(
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
showPinDataDiscoveryTooltip(dataItemsCount: number): void {
|
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');
|
||||||
localStorage.setItem(LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, 'true');
|
|
||||||
|
|
||||||
this.pinDataDiscoveryTooltipVisible = true;
|
this.pinDataDiscoveryTooltipVisible = true;
|
||||||
this.unwatchWorkflowDataItems();
|
this.unwatchWorkflowDataItems();
|
||||||
}
|
|
||||||
},
|
},
|
||||||
setSubtitle() {
|
setSubtitle() {
|
||||||
const nodeSubtitle = this.getNodeSubtitle(this.data, this.nodeType, this.getCurrentWorkflow()) || '';
|
const nodeSubtitle = this.getNodeSubtitle(this.data, this.nodeType, this.getCurrentWorkflow()) || '';
|
||||||
|
|
Loading…
Reference in a new issue