mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(editor): Add sticky note without manual trigger (#5039)
🐛 Add sticky note without manual trigger
This commit is contained in:
parent
33d7a13e73
commit
18140e059b
|
@ -17,6 +17,7 @@ import {
|
||||||
CALENDLY_TRIGGER_NODE_TYPE,
|
CALENDLY_TRIGGER_NODE_TYPE,
|
||||||
TRIGGER_NODE_FILTER,
|
TRIGGER_NODE_FILTER,
|
||||||
WEBHOOK_NODE_TYPE,
|
WEBHOOK_NODE_TYPE,
|
||||||
|
STICKY_NODE_TYPE,
|
||||||
} from '@/constants';
|
} from '@/constants';
|
||||||
import { useNodeTypesStore } from '@/stores/nodeTypes';
|
import { useNodeTypesStore } from '@/stores/nodeTypes';
|
||||||
import { useWorkflowsStore } from './workflows';
|
import { useWorkflowsStore } from './workflows';
|
||||||
|
@ -342,9 +343,10 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, {
|
||||||
nodeType.toLocaleLowerCase().includes('trigger') || nodeType === WEBHOOK_NODE_TYPE;
|
nodeType.toLocaleLowerCase().includes('trigger') || nodeType === WEBHOOK_NODE_TYPE;
|
||||||
const workflowContainsTrigger = workflowTriggerNodes.length > 0;
|
const workflowContainsTrigger = workflowTriggerNodes.length > 0;
|
||||||
const isTriggerPanel = useNodeCreatorStore().selectedType === TRIGGER_NODE_FILTER;
|
const isTriggerPanel = useNodeCreatorStore().selectedType === TRIGGER_NODE_FILTER;
|
||||||
|
const isStickyNode = nodeType === STICKY_NODE_TYPE;
|
||||||
|
|
||||||
const nodeTypes =
|
const nodeTypes =
|
||||||
!isTrigger && !workflowContainsTrigger && isTriggerPanel
|
!isTrigger && !workflowContainsTrigger && isTriggerPanel && !isStickyNode
|
||||||
? [MANUAL_TRIGGER_NODE_TYPE, nodeType]
|
? [MANUAL_TRIGGER_NODE_TYPE, nodeType]
|
||||||
: [nodeType];
|
: [nodeType];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue