From 80375cbe2c2d1da3d98558018fe357cfb9b85faa Mon Sep 17 00:00:00 2001 From: aqilaziz <46887634+aqilaziz@users.noreply.github.com> Date: Tue, 12 May 2026 16:39:11 -0700 Subject: [PATCH] fix(dashboard): display real config path on Config page Replace the hardcoded i18n placeholder "~/.hermes/config.yaml" with the real config_path returned from api.getStatus(), falling back to the i18n string while loading or on API failure. Co-authored-by: aqilaziz --- web/src/pages/ConfigPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/src/pages/ConfigPage.tsx b/web/src/pages/ConfigPage.tsx index 66df9cd8f4d..ab402fb1563 100644 --- a/web/src/pages/ConfigPage.tsx +++ b/web/src/pages/ConfigPage.tsx @@ -118,6 +118,7 @@ export default function ConfigPage() { const [yamlText, setYamlText] = useState(""); const [yamlLoading, setYamlLoading] = useState(false); const [yamlSaving, setYamlSaving] = useState(false); + const [configPath, setConfigPath] = useState(null); const [activeCategory, setActiveCategory] = useState(""); const [confirmReset, setConfirmReset] = useState(false); const { toast, showToast } = useToast(); @@ -177,6 +178,10 @@ export default function ConfigPage() { .getDefaults() .then(setDefaults) .catch(() => {}); + api + .getStatus() + .then((resp) => setConfigPath(resp.config_path)) + .catch(() => {}); }, []); // Set active category when categories load @@ -416,7 +421,7 @@ export default function ConfigPage() {
- {t.config.configPath} + {configPath ?? t.config.configPath}