diff --git a/web/app/components/app/overview/customize/index.tsx b/web/app/components/app/overview/customize/index.tsx index 3affa339bf3..98b67db112c 100644 --- a/web/app/components/app/overview/customize/index.tsx +++ b/web/app/components/app/overview/customize/index.tsx @@ -13,7 +13,8 @@ type IShareLinkProps = { onClose: () => void api_base_url: string appId: string - mode: AppModeEnum + mode?: AppModeEnum + sourceCodeRepository?: 'webapp-conversation' | 'webapp-text-generator' } const StepNum: FC<{ children: React.ReactNode }> = ({ children }) => ( @@ -38,10 +39,12 @@ const CustomizeModal: FC = ({ appId, api_base_url, mode, + sourceCodeRepository, }) => { const { t } = useTranslation() const docLink = useDocLink() const isChatApp = mode === AppModeEnum.CHAT || mode === AppModeEnum.ADVANCED_CHAT + const repository = sourceCodeRepository ?? (isChatApp ? 'webapp-conversation' : 'webapp-text-generator') const apiDocLink = docLink('/use-dify/publish/developing-with-apis') return ( @@ -67,7 +70,7 @@ const CustomizeModal: FC = ({
{t(`${prefixCustomize}.way1.step1`, { ns: 'appOverview' })}
{t(`${prefixCustomize}.way1.step1Tip`, { ns: 'appOverview' })}
- @@ -78,7 +81,7 @@ const CustomizeModal: FC = ({
{t(`${prefixCustomize}.way1.step2`, { ns: 'appOverview' })}
{t(`${prefixCustomize}.way1.step2Tip`, { ns: 'appOverview' })}
- @@ -114,7 +117,7 @@ const CustomizeModal: FC = ({

{t(`${prefixCustomize}.way2.name`, { ns: 'appOverview' })}

- @@ -164,6 +180,15 @@ export function WebAppAccessCard({ {t('agentDetail.access.webApp.actions.settings')} + {customizeConfig && ( + setShowCustomizeModal(false)} + appId={customizeConfig.appId} + api_base_url={customizeConfig.apiBaseUrl} + sourceCodeRepository="webapp-conversation" + /> + )} ) }