Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix: judgement of open in explore (#25420)

KVOJJJin22cd97e2e056
diff --git a/web/app/components/apps/app-card.tsx b/web/app/components/apps/app-card.tsx
index d0d42dc32cf..e9a64d88671 100644
--- a/web/app/components/apps/app-card.tsx
+++ b/web/app/components/apps/app-card.tsx
@@ -279,12 +279,21 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {
</>
)}
{
- (isGettingUserCanAccessApp || !userCanAccessApp?.result) ? null : <>
- <Divider className="my-1" />
- <button className='mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover' onClick={onClickInstalledApp}>
- <span className='system-sm-regular text-text-secondary'>{t('app.openInExplore')}</span>
- </button>
- </>
+ (!systemFeatures.webapp_auth.enabled)
+ ? <>
+ <Divider className="my-1" />
+ <button className='mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover' onClick={onClickInstalledApp}>
+ <span className='system-sm-regular text-text-secondary'>{t('app.openInExplore')}</span>
+ </button>
+ </>
+ : !(isGettingUserCanAccessApp || !userCanAccessApp?.result) && (
+ <>
+ <Divider className="my-1" />
+ <button className='mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover' onClick={onClickInstalledApp}>
+ <span className='system-sm-regular text-text-secondary'>{t('app.openInExplore')}</span>
+ </button>
+ </>
+ )
}
<Divider className="my-1" />
{