Move viewer export/import into a dedicated Backup tab.

Keeps game save import in the sidebar while grouping viewer database
backup actions with their explanation in the main navigation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-20 10:03:04 +02:00
parent 3314de829d
commit dc42727f34
5 changed files with 48 additions and 39 deletions
+3
View File
@@ -113,6 +113,8 @@ function applyStaticI18n() {
document.querySelectorAll("[data-i18n]").forEach((el) => {
el.textContent = t(el.dataset.i18n);
});
const exportEl = document.getElementById("export-viewer");
if (exportEl) exportEl.title = t("viewerDb.exportHint");
}
function setupLanguage() {
@@ -146,6 +148,7 @@ function activateTab(tab) {
document.getElementById(`tab-${tab}`).classList.add("active");
if (tab === "history") loadHistoryTab();
if (tab === "goals") trackEvent("Goals Tab");
if (tab === "backup") trackEvent("Backup Tab");
}
function setupNav() {