mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(editor): Prevent scrim on executable triggers (#5068)
🐛 Prevent scrim on executable triggers
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
:linkedRuns="linked"
|
:linkedRuns="linked"
|
||||||
:sessionId="sessionId"
|
:sessionId="sessionId"
|
||||||
:isReadOnly="readOnly || hasForeignCredential"
|
:isReadOnly="readOnly || hasForeignCredential"
|
||||||
:blockUI="blockUi && isTriggerNode"
|
:blockUI="blockUi && isTriggerNode && !isExecutableTriggerNode"
|
||||||
:isProductionExecutionPreview="isProductionExecutionPreview"
|
:isProductionExecutionPreview="isProductionExecutionPreview"
|
||||||
@linkRun="onLinkRunToOutput"
|
@linkRun="onLinkRunToOutput"
|
||||||
@unlinkRun="() => onUnlinkRun('output')"
|
@unlinkRun="() => onUnlinkRun('output')"
|
||||||
@@ -143,6 +143,7 @@ import TriggerPanel from './TriggerPanel.vue';
|
|||||||
import {
|
import {
|
||||||
BASE_NODE_SURVEY_URL,
|
BASE_NODE_SURVEY_URL,
|
||||||
EnterpriseEditionFeature,
|
EnterpriseEditionFeature,
|
||||||
|
EXECUTABLE_TRIGGER_NODE_TYPES,
|
||||||
START_NODE_TYPE,
|
START_NODE_TYPE,
|
||||||
STICKY_NODE_TYPE,
|
STICKY_NODE_TYPE,
|
||||||
} from '@/constants';
|
} from '@/constants';
|
||||||
@@ -269,6 +270,11 @@ export default mixins(
|
|||||||
parentNode(): string | undefined {
|
parentNode(): string | undefined {
|
||||||
return this.parentNodes[0];
|
return this.parentNodes[0];
|
||||||
},
|
},
|
||||||
|
isExecutableTriggerNode(): boolean {
|
||||||
|
if (!this.activeNodeType) return false;
|
||||||
|
|
||||||
|
return EXECUTABLE_TRIGGER_NODE_TYPES.includes(this.activeNodeType.name);
|
||||||
|
},
|
||||||
isTriggerNode(): boolean {
|
isTriggerNode(): boolean {
|
||||||
return (
|
return (
|
||||||
!!this.activeNodeType &&
|
!!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_NODE_TYPE = 'n8n-nodes-base.zendesk';
|
||||||
export const ZENDESK_TRIGGER_NODE_TYPE = 'n8n-nodes-base.zendeskTrigger';
|
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 = [
|
export const NON_ACTIVATABLE_TRIGGER_NODE_TYPES = [
|
||||||
ERROR_TRIGGER_NODE_TYPE,
|
ERROR_TRIGGER_NODE_TYPE,
|
||||||
MANUAL_TRIGGER_NODE_TYPE,
|
MANUAL_TRIGGER_NODE_TYPE,
|
||||||
|
|||||||
Reference in New Issue
Block a user