mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
fix(editor): Prevent scrim on executable triggers (#5068)
🐛 Prevent scrim on executable triggers
This commit is contained in:
parent
43304b0691
commit
e1f9349c19
|
@ -77,7 +77,7 @@
|
|||
:linkedRuns="linked"
|
||||
:sessionId="sessionId"
|
||||
:isReadOnly="readOnly || hasForeignCredential"
|
||||
:blockUI="blockUi && isTriggerNode"
|
||||
:blockUI="blockUi && isTriggerNode && !isExecutableTriggerNode"
|
||||
:isProductionExecutionPreview="isProductionExecutionPreview"
|
||||
@linkRun="onLinkRunToOutput"
|
||||
@unlinkRun="() => onUnlinkRun('output')"
|
||||
|
@ -143,6 +143,7 @@ import TriggerPanel from './TriggerPanel.vue';
|
|||
import {
|
||||
BASE_NODE_SURVEY_URL,
|
||||
EnterpriseEditionFeature,
|
||||
EXECUTABLE_TRIGGER_NODE_TYPES,
|
||||
START_NODE_TYPE,
|
||||
STICKY_NODE_TYPE,
|
||||
} from '@/constants';
|
||||
|
@ -269,6 +270,11 @@ export default mixins(
|
|||
parentNode(): string | undefined {
|
||||
return this.parentNodes[0];
|
||||
},
|
||||
isExecutableTriggerNode(): boolean {
|
||||
if (!this.activeNodeType) return false;
|
||||
|
||||
return EXECUTABLE_TRIGGER_NODE_TYPES.includes(this.activeNodeType.name);
|
||||
},
|
||||
isTriggerNode(): boolean {
|
||||
return (
|
||||
!!this.activeNodeType &&
|
||||
|
|
|
@ -126,6 +126,14 @@ export const XERO_NODE_TYPE = 'n8n-nodes-base.xero';
|
|||
export const ZENDESK_NODE_TYPE = 'n8n-nodes-base.zendesk';
|
||||
export const ZENDESK_TRIGGER_NODE_TYPE = 'n8n-nodes-base.zendeskTrigger';
|
||||
|
||||
export const EXECUTABLE_TRIGGER_NODE_TYPES = [
|
||||
START_NODE_TYPE,
|
||||
MANUAL_TRIGGER_NODE_TYPE,
|
||||
SCHEDULE_TRIGGER_NODE_TYPE,
|
||||
CRON_NODE_TYPE,
|
||||
INTERVAL_NODE_TYPE,
|
||||
];
|
||||
|
||||
export const NON_ACTIVATABLE_TRIGGER_NODE_TYPES = [
|
||||
ERROR_TRIGGER_NODE_TYPE,
|
||||
MANUAL_TRIGGER_NODE_TYPE,
|
||||
|
|
Loading…
Reference in a new issue