Fix session name label language switch + add frontend screenshot
- Store raw session name in STATE.currentSessionRawName - Re-render session-name-display in toggleLang() with current translation - Add frontend.png screenshot to README - Bump 1.22.15, SW cache v46->v47
This commit is contained in:
1 parent
af16eb1dd8
commit
ede38c985e
7 files changed
+12
-5
No files matched your search
+6
-1
@@ -421,6 +421,7 @@ const STATE = {
|
||||
captureActive: false,
|
||||
currentSessionId: null,
|
||||
currentSessionName: null,
|
||||
currentSessionRawName: null,
|
||||
sessionViewId: null,
|
||||
sessionStarted: null,
|
||||
livePoller: null,
|
||||
@@ -2364,6 +2365,7 @@ async function loadSession(id) {
|
||||
STATE.sessionStarted = data.session.started;
|
||||
STATE.captureActive = false;
|
||||
STATE.currentSessionName = data.session.name || t('Session #') + id;
|
||||
STATE.currentSessionRawName = data.session.name || null;
|
||||
STATE.messages = data.messages;
|
||||
STATE.mapExpanded.clear();
|
||||
switchTab('trace');
|
||||
@@ -2621,7 +2623,7 @@ function onFilterChange() {
|
||||
}
|
||||
|
||||
// ──────────────────── Versioning ────────────────────
|
||||
const PWA_VERSION = '1.22.14';
|
||||
const PWA_VERSION = '1.22.15';
|
||||
const MIN_SERVER_VERSION = '1.0.0';
|
||||
|
||||
function parseVersion(v) {
|
||||
@@ -2773,6 +2775,9 @@ function toggleLang() {
|
||||
localStorage.setItem('lang', currentLang);
|
||||
applyLang();
|
||||
translatePage();
|
||||
if (STATE.sessionViewId) {
|
||||
el('session-name-display').textContent = t('Session: ') + (STATE.currentSessionRawName || '#' + STATE.sessionViewId);
|
||||
}
|
||||
updateStatus();
|
||||
updateCaptureButton();
|
||||
renderMessages();
|
||||
|
||||
Reference in new issue
Block a user