fix(editor): Prevent scrim on executable triggers (#5068)

🐛 Prevent scrim on executable triggers
This commit is contained in:
Iván Ovejero 2023-01-03 11:25:50 +01:00 committed by GitHub
parent 43304b0691
commit e1f9349c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -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 &&

View file

@ -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,