экспорт маппинга

This commit is contained in:
2026-08-19 17:32:13 +03:00
parent c643a183d8
commit 614a61168a
17 changed files with 1012 additions and 35 deletions

View File

@@ -317,6 +317,9 @@
}
state.currentUser = user;
state.isAdmin = Boolean(user?.is_admin);
const editorButton = document.getElementById("runtimeEditorBtn");
editorButton?.classList.toggle("hidden", !state.isAdmin);
document.body.dataset.hockeyAdmin = state.isAdmin ? "1" : "0";
const currentAccountId = String(user?.id || "").trim();
if (!currentAccountId) return;
const previousAccountId = String(localStorage.getItem(storage.account) || "").trim();