diff --git a/web/app/components/app-sidebar/app-info/app-info-detail-panel.tsx b/web/app/components/app-sidebar/app-info/app-info-detail-panel.tsx index 43c5711490e..8d288460814 100644 --- a/web/app/components/app-sidebar/app-info/app-info-detail-panel.tsx +++ b/web/app/components/app-sidebar/app-info/app-info-detail-panel.tsx @@ -97,7 +97,7 @@ const AppInfoDetailPanel = ({
@@ -109,14 +109,14 @@ const AppInfoDetailPanel = ({ imageUrl={appDetail.icon_url} />
-
{appDetail.name}
-
+
{appDetail.name}
+
{getAppModeLabel(appDetail.mode, t)}
{appDetail.description && ( -
+
{appDetail.description}
)} @@ -142,7 +142,7 @@ const AppInfoDetailPanel = ({ onClick={switchOperation.onClick} > {switchOperation.icon} - {switchOperation.title} + {switchOperation.title}
)} diff --git a/web/app/components/app/app-publisher/index.tsx b/web/app/components/app/app-publisher/index.tsx index e48d523bff0..ca8441cfb43 100644 --- a/web/app/components/app/app-publisher/index.tsx +++ b/web/app/components/app/app-publisher/index.tsx @@ -1,7 +1,7 @@ import type { ModelAndParameter } from '../configuration/debug/types' import type { InputVar, Variable } from '@/app/components/workflow/types' import type { I18nKeysByPrefix } from '@/types/i18n' -import type { PublishWorkflowParams } from '@/types/workflow' +import type { PublishWorkflowParams, WorkflowTypeConversionTarget } from '@/types/workflow' import { useKeyPress } from 'ahooks' import { memo, @@ -82,7 +82,7 @@ const AccessModeDisplay: React.FC<{ mode?: AccessMode }> = ({ mode }) => { <>
- {t(`accessControlDialog.accessItems.${label}`, { ns: 'app' })} + {t(`accessControlDialog.accessItems.${label}`, { ns: 'app' })}
) @@ -270,7 +270,7 @@ const AppPublisher = ({ appId: appDetail.id, }, query: { - target_type: workflowTypeSwitchConfig.targetType, + target_type: workflowTypeSwitchConfig.targetType as WorkflowTypeConversionTarget, }, }) @@ -321,7 +321,7 @@ const AppPublisher = ({