From fa3eb11b6a27ef32f92c8ee265014f13e78e25ec Mon Sep 17 00:00:00 2001 From: JzoNg Date: Thu, 7 Mar 2024 21:12:45 +0800 Subject: [PATCH] old app do not support duplicate and export dsl --- web/app/(commonLayout)/apps/AppCard.tsx | 6 +++++- web/app/components/app-sidebar/app-info.tsx | 10 ++++++++-- web/app/components/app/configuration/index.tsx | 2 +- web/app/components/base/popover/index.tsx | 6 ++++++ 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/web/app/(commonLayout)/apps/AppCard.tsx b/web/app/(commonLayout)/apps/AppCard.tsx index 53e24f0b89..1d5415508b 100644 --- a/web/app/(commonLayout)/apps/AppCard.tsx +++ b/web/app/(commonLayout)/apps/AppCard.tsx @@ -177,7 +177,7 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => { {t('common.operation.settings')} - {app.mode !== 'completion' && ( + {(app.mode === 'workflow' || app.mode === 'agent-chat' || app.mode === 'advanced-chat' || (app.mode === 'chat' && detailState.detail?.model_config.prompt_type === 'simple')) && ( <>