From 8aa6aff53acc86aae58d5da10b5bf396a253ab31 Mon Sep 17 00:00:00 2001 From: ConnorYoh <40631091+ConnorYoh@users.noreply.github.com> Date: Thu, 2 Oct 2025 17:49:10 +0100 Subject: [PATCH] Config becomes account when enableLogin (#4585) {36B7A86A-4B9A-433F-9784-B9E923FF4872} Co-authored-by: Connor Yoh --- frontend/public/locales/en-GB/translation.json | 1 + frontend/src/components/shared/QuickAccessBar.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 2772ad15e..71f0bb90b 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -3127,6 +3127,7 @@ "automate": "Automate", "files": "Files", "activity": "Activity", + "account": "Account", "config": "Config", "allTools": "All Tools" }, diff --git a/frontend/src/components/shared/QuickAccessBar.tsx b/frontend/src/components/shared/QuickAccessBar.tsx index b7206fa93..af9c8acff 100644 --- a/frontend/src/components/shared/QuickAccessBar.tsx +++ b/frontend/src/components/shared/QuickAccessBar.tsx @@ -13,6 +13,7 @@ import './quickAccessBar/QuickAccessBar.css'; import AllToolsNavButton from './AllToolsNavButton'; import ActiveToolButton from "./quickAccessBar/ActiveToolButton"; import AppConfigModal from './AppConfigModal'; +import { useAppConfig } from '../../hooks/useAppConfig'; import { isNavButtonActive, getNavButtonStyle, @@ -25,6 +26,7 @@ const QuickAccessBar = forwardRef((_, ref) => { const { openFilesModal, isFilesModalOpen } = useFilesModalContext(); const { handleReaderToggle, handleBackToTools, handleToolSelect, selectedToolKey, leftPanelView, toolRegistry, readerMode, resetTool } = useToolWorkflow(); const { getToolNavigation } = useSidebarNavigation(); + const { config } = useAppConfig(); const [configModalOpen, setConfigModalOpen] = useState(false); const [activeButton, setActiveButton] = useState('tools'); const scrollableRef = useRef(null); @@ -151,8 +153,8 @@ const QuickAccessBar = forwardRef((_, ref) => { //}, { id: 'config', - name: t("quickAccess.config", "Config"), - icon: , + name: config?.enableLogin ? t("quickAccess.account", "Account") : t("quickAccess.config", "Config"), + icon: config?.enableLogin ? : , size: 'lg', type: 'modal', onClick: () => {