mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Hide run workflow button if only chat trigger available on new canvas (no-changelog) (#11041)
This commit is contained in:
@@ -973,6 +973,7 @@ const isExecutionDisabled = computed(() => {
|
||||
return !containsTriggerNodes.value || allTriggerNodesDisabled.value;
|
||||
});
|
||||
|
||||
const isRunWorkflowButtonVisible = computed(() => !isOnlyChatTriggerNodeActive.value);
|
||||
const isStopExecutionButtonVisible = computed(
|
||||
() => isWorkflowRunning.value && !isExecutionWaitingForWebhook.value,
|
||||
);
|
||||
@@ -1598,6 +1599,7 @@ onBeforeUnmount(() => {
|
||||
>
|
||||
<div v-if="!isCanvasReadOnly" :class="$style.executionButtons">
|
||||
<CanvasRunWorkflowButton
|
||||
v-if="isRunWorkflowButtonVisible"
|
||||
:waiting-for-webhook="isExecutionWaitingForWebhook"
|
||||
:disabled="isExecutionDisabled"
|
||||
:executing="isWorkflowRunning"
|
||||
|
||||
Reference in New Issue
Block a user