fix(editor): Hide run workflow button if only chat trigger available on new canvas (no-changelog) (#11041)

This commit is contained in:
Alex Grozav 2024-10-03 15:13:09 +03:00 committed by GitHub
parent 90b4bfc472
commit 9ed8040ec0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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