Fix: judgement of open in explore (#25420)
This commit is contained in:
parent
38057b1b0e
commit
22cd97e2e0
1 changed files with 15 additions and 6 deletions
|
|
@ -279,12 +279,21 @@ const AppCard = ({ app, onRefresh }: AppCardProps) => {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{
|
{
|
||||||
(isGettingUserCanAccessApp || !userCanAccessApp?.result) ? null : <>
|
(!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}>
|
<Divider className="my-1" />
|
||||||
<span className='system-sm-regular text-text-secondary'>{t('app.openInExplore')}</span>
|
<button className='mx-1 flex h-8 cursor-pointer items-center gap-2 rounded-lg px-3 hover:bg-state-base-hover' onClick={onClickInstalledApp}>
|
||||||
</button>
|
<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" />
|
<Divider className="my-1" />
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue