From 66654faef3c357a1956f1b84c0ff5708c38d7a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9C=A3=E7=97=95?= Date: Tue, 4 Mar 2025 10:20:18 +0800 Subject: [PATCH] fix: fixed incorrect operation of publishing as tool (#14561) --- web/app/components/app/app-publisher/index.tsx | 2 +- .../components/tools/workflow-tool/configure-button.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index a2260a889d..54853cf875 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -219,7 +219,7 @@ const AppPublisher = ({ )} { - handleOpenInExplore() + publishedAt && handleOpenInExplore() }} disabled={!publishedAt} icon={} diff --git a/web/app/components/tools/workflow-tool/configure-button.tsx b/web/app/components/tools/workflow-tool/configure-button.tsx index 0d97619e0d..88c451c166 100644 --- a/web/app/components/tools/workflow-tool/configure-button.tsx +++ b/web/app/components/tools/workflow-tool/configure-button.tsx @@ -179,16 +179,16 @@ const WorkflowToolConfigureButton = ({
{isCurrentWorkspaceManager ? (
!published && setShowModal(true)} + onClick={() => !disabled && !published && setShowModal(true)} > - -
{t('workflow.common.workflowAsTool')}
+ +
{t('workflow.common.workflowAsTool')}
{!published && ( {t('workflow.common.configureRequired').toLocaleUpperCase()} )}