From fef6f0eb03dd508856920d406aa7e997c0cf975b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 31 May 2026 04:53:20 +0000 Subject: [PATCH] Use configurable venue names on nav tabs Bar and Cashier tab labels now reflect bar_name / cashier_name from app settings; loadConfig() updates the spans on every config refresh. https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7 --- static/common.js | 4 ++++ static/index.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/common.js b/static/common.js index 95773de..48539b8 100644 --- a/static/common.js +++ b/static/common.js @@ -10,6 +10,10 @@ async function loadConfig() { if (brand) brand.textContent = cfg.club_name; document.title = document.title.replace('ClubLedger', cfg.club_name); document.querySelectorAll('.currency-unit').forEach(el => { el.textContent = cfg.currency_unit; }); + const barLabel = document.getElementById('navBarLabel'); + if (barLabel && cfg.bar_name) barLabel.textContent = cfg.bar_name; + const cashierLabel = document.getElementById('navCashierLabel'); + if (cashierLabel && cfg.cashier_name) cashierLabel.textContent = cfg.cashier_name; } catch (e) { /* use defaults */ } } diff --git a/static/index.html b/static/index.html index 4900cc4..c78b1fa 100644 --- a/static/index.html +++ b/static/index.html @@ -37,10 +37,10 @@ groupMembers