From fe569559acbea3714723e120b4c1867f2268c2ef Mon Sep 17 00:00:00 2001 From: JzoNg Date: Tue, 2 Apr 2024 12:56:11 +0800 Subject: [PATCH] fix app type label --- web/app/(commonLayout)/apps/AppCard.tsx | 6 +++++- web/app/components/explore/app-card/index.tsx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/app/(commonLayout)/apps/AppCard.tsx b/web/app/(commonLayout)/apps/AppCard.tsx index cbe5780ccc..1103df3f64 100644 --- a/web/app/(commonLayout)/apps/AppCard.tsx +++ b/web/app/(commonLayout)/apps/AppCard.tsx @@ -247,7 +247,11 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {
{app.name}
-
{t('app.types.chatbot').toUpperCase()}
+ {app.mode === 'advanced-chat' &&
{t('app.types.chatbot').toUpperCase()}
} + {app.mode === 'chat' &&
{t('app.types.chatbot').toUpperCase()}
} + {app.mode === 'agent-chat' &&
{t('app.types.agent').toUpperCase()}
} + {app.mode === 'workflow' &&
{t('app.types.workflow').toUpperCase()}
} + {app.mode === 'completion' &&
{t('app.types.completion').toUpperCase()}
}
{isCurrentWorkspaceManager && {appBasicInfo.name}
-
{t('app.types.chatbot').toUpperCase()}
+ {appBasicInfo.mode === 'advanced-chat' &&
{t('app.types.chatbot').toUpperCase()}
} + {appBasicInfo.mode === 'chat' &&
{t('app.types.chatbot').toUpperCase()}
} + {appBasicInfo.mode === 'agent-chat' &&
{t('app.types.agent').toUpperCase()}
} + {appBasicInfo.mode === 'workflow' &&
{t('app.types.workflow').toUpperCase()}
} + {appBasicInfo.mode === 'completion' &&
{t('app.types.completion').toUpperCase()}
}