feat(editor): Always show collapsed panel at the bottom of canvas (#13715)

This commit is contained in:
autologie
2025-03-18 17:09:09 +01:00
committed by GitHub
parent bc15bb18d9
commit 2e9d3ad3e1
19 changed files with 895 additions and 248 deletions

View File

@@ -113,6 +113,7 @@ import { createCanvasConnectionHandleString } from '@/utils/canvasUtils';
import { isValidNodeConnectionType } from '@/utils/typeGuards';
import { getEasyAiWorkflowJson } from '@/utils/easyAiWorkflowUtils';
import type { CanvasLayoutEvent } from '@/composables/useCanvasLayout';
import { useClearExecutionButtonVisible } from '@/composables/useClearExecutionButtonVisible';
defineOptions({
name: 'NodeView',
@@ -1122,16 +1123,8 @@ const isStopExecutionButtonVisible = computed(
const isStopWaitingForWebhookButtonVisible = computed(
() => isWorkflowRunning.value && isExecutionWaitingForWebhook.value,
);
const isClearExecutionButtonVisible = computed(
() =>
!isReadOnlyRoute.value &&
!isReadOnlyEnvironment.value &&
!isWorkflowRunning.value &&
!allTriggerNodesDisabled.value &&
workflowExecutionData.value,
);
const workflowExecutionData = computed(() => workflowsStore.workflowExecutionData);
const isClearExecutionButtonVisible = useClearExecutionButtonVisible();
async function onRunWorkflowToNode(id: string) {
const node = workflowsStore.getNodeById(id);
@@ -1806,7 +1799,7 @@ onBeforeUnmount(() => {
@click="onStopWaitingForWebhook"
/>
<CanvasClearExecutionDataButton
v-if="isClearExecutionButtonVisible"
v-if="isClearExecutionButtonVisible && !settingsStore.isNewLogsEnabled"
@click="onClearExecutionData"
/>
</div>