mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Hide run workflow button if only chat trigger available on new canvas (no-changelog) (#11041)
This commit is contained in:
parent
90b4bfc472
commit
9ed8040ec0
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue