From ff522958de1dd65ea8119cdef38668783c7876d8 Mon Sep 17 00:00:00 2001 From: xiezhouwei Date: Mon, 22 Jun 2026 11:35:22 +0800 Subject: [PATCH] fix: restrict theme toggle and language selector to console routes only, hide on public pages --- .../components/layout/headerbar/ActionButtons.jsx | 15 ++++++++++----- web/src/components/layout/headerbar/index.jsx | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/web/src/components/layout/headerbar/ActionButtons.jsx b/web/src/components/layout/headerbar/ActionButtons.jsx index 5e32f28..094843d 100644 --- a/web/src/components/layout/headerbar/ActionButtons.jsx +++ b/web/src/components/layout/headerbar/ActionButtons.jsx @@ -35,6 +35,7 @@ const ActionButtons = ({ isLoading, isMobile, isSelfUseMode, + isConsoleRoute, logout, navigate, t, @@ -51,12 +52,16 @@ const ActionButtons = ({ /> )} - + {isConsoleRoute && ( + <> + - + + + )} { isLoading={isLoading} isMobile={isMobile} isSelfUseMode={isSelfUseMode} + isConsoleRoute={isConsoleRoute} logout={logout} navigate={navigate} t={t}