mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: fix redirect timing while `enableHome` is false; tweak UI (#5538)
Some checks are pending
Document deploy / sync-images (push) Waiting to run
Document deploy / generate-timestamp (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Blocked by required conditions
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
Document deploy / sync-images (push) Waiting to run
Document deploy / generate-timestamp (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Blocked by required conditions
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Blocked by required conditions
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Blocked by required conditions
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
2e2e919d1d
commit
4939271abb
|
|
@ -190,7 +190,7 @@ const HomeChatWindow = ({ myApps }: Props) => {
|
|||
};
|
||||
|
||||
useMount(() => {
|
||||
if (!feConfigs?.isPlus || !chatSettings?.enableHome) {
|
||||
if (!feConfigs?.isPlus) {
|
||||
handlePaneChange(ChatSidebarPaneEnum.TEAM_APPS);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const UserAvatarPopover = ({
|
|||
gap={2}
|
||||
>
|
||||
<Avatar src={userInfo?.avatar} bg="myGray.200" borderRadius="50%" w={5} h={5} />
|
||||
<Box w="full" className="textEllipsis">
|
||||
<Box flex="1 1 0" minW="0" whiteSpace="pre-wrap">
|
||||
{userInfo?.username ?? '-'}
|
||||
</Box>
|
||||
</Flex>
|
||||
|
|
|
|||
|
|
@ -255,7 +255,10 @@ const NavigationSection = () => {
|
|||
const { t } = useTranslation();
|
||||
const { feConfigs } = useSystemStore();
|
||||
|
||||
const isEnableHome = useContextSelector(ChatSettingContext, (v) => v.chatSettings?.enableHome);
|
||||
const isEnableHome = useContextSelector(
|
||||
ChatSettingContext,
|
||||
(v) => v.chatSettings?.enableHome ?? true
|
||||
);
|
||||
const isCollapsed = useContextSelector(ChatSettingContext, (v) => v.collapse === 1);
|
||||
const onTriggerCollapse = useContextSelector(ChatSettingContext, (v) => v.onTriggerCollapse);
|
||||
const isHomeActive = useContextSelector(
|
||||
|
|
|
|||
|
|
@ -67,6 +67,11 @@ export const ChatSettingContextProvider = ({ children }: { children: React.React
|
|||
onSuccess: (data) => {
|
||||
if (!data) return;
|
||||
|
||||
if (!data.enableHome && pane === ChatSidebarPaneEnum.HOME) {
|
||||
handlePaneChange(ChatSidebarPaneEnum.TEAM_APPS);
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
pane === ChatSidebarPaneEnum.HOME &&
|
||||
appId !== data.appId &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue