mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
app detail visibility (#5178)
Some checks are pending
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
Some checks are pending
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
This commit is contained in:
parent
b01506352b
commit
53bcd413b8
|
|
@ -276,6 +276,10 @@ const Render = (props: { appId: string; isStandalone?: string }) => {
|
|||
setAppId(appId);
|
||||
}, [appId, setAppId]);
|
||||
|
||||
const currentApp = useMemo(() => {
|
||||
return myApps.find((app) => app._id === appId);
|
||||
}, [appId, myApps]);
|
||||
|
||||
const chatHistoryProviderParams = useMemo(
|
||||
() => ({ appId, source: ChatSourceEnum.online }),
|
||||
[appId]
|
||||
|
|
@ -291,7 +295,7 @@ const Render = (props: { appId: string; isStandalone?: string }) => {
|
|||
return source === ChatSourceEnum.online ? (
|
||||
<ChatContextProvider params={chatHistoryProviderParams}>
|
||||
<ChatItemContextProvider
|
||||
showRouteToAppDetail={isStandalone !== '1'}
|
||||
showRouteToAppDetail={isStandalone !== '1' && !!currentApp?.permission.hasWritePer}
|
||||
showRouteToDatasetDetail={isStandalone !== '1'}
|
||||
isShowReadRawSource={true}
|
||||
isResponseDetail={true}
|
||||
|
|
|
|||
Loading…
Reference in New Issue