mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -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;
|
return !containsTriggerNodes.value || allTriggerNodesDisabled.value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const isRunWorkflowButtonVisible = computed(() => !isOnlyChatTriggerNodeActive.value);
|
||||||
const isStopExecutionButtonVisible = computed(
|
const isStopExecutionButtonVisible = computed(
|
||||||
() => isWorkflowRunning.value && !isExecutionWaitingForWebhook.value,
|
() => isWorkflowRunning.value && !isExecutionWaitingForWebhook.value,
|
||||||
);
|
);
|
||||||
|
@ -1598,6 +1599,7 @@ onBeforeUnmount(() => {
|
||||||
>
|
>
|
||||||
<div v-if="!isCanvasReadOnly" :class="$style.executionButtons">
|
<div v-if="!isCanvasReadOnly" :class="$style.executionButtons">
|
||||||
<CanvasRunWorkflowButton
|
<CanvasRunWorkflowButton
|
||||||
|
v-if="isRunWorkflowButtonVisible"
|
||||||
:waiting-for-webhook="isExecutionWaitingForWebhook"
|
:waiting-for-webhook="isExecutionWaitingForWebhook"
|
||||||
:disabled="isExecutionDisabled"
|
:disabled="isExecutionDisabled"
|
||||||
:executing="isWorkflowRunning"
|
:executing="isWorkflowRunning"
|
||||||
|
|
Loading…
Reference in a new issue