This commit is contained in:
Mateusz Gruszczyński committed 2026-11-09 23:55:03 +01:00
1 parent 358a4518d9
commit 2789991452
13 files changed
+215 -6

No files matched your search

+6 -2
View File
@@ -53,6 +53,7 @@ function translate() {
document.querySelectorAll("[data-i18n-placeholder]").forEach(e => e.placeholder = t(e.dataset.i18nPlaceholder));
document.querySelectorAll("[data-i18n-aria]").forEach(e => e.setAttribute("aria-label", t(e.dataset.i18nAria)));
document.querySelectorAll("[data-i18n-title]").forEach(e => { e.title = t(e.dataset.i18nTitle); });
window.rustProxySidebar?.refresh?.();
window.rustProxyAclProfiles?.refreshTranslations?.();
$("language").value = languagePreference === "auto" ? "auto" : language; setPanel(currentPanel, false); syncAuthForm(); renderSession();
window.rustProxyDrafts?.refresh();
@@ -511,10 +512,13 @@ async function activate(info) {
for (const id of ["password", "password-confirm", "setup-token"]) $(id).value = "";
$("login").hidden = true; $("workspace").hidden = false; $("logout").hidden = false;
renderSession();
document.documentElement.classList.remove("app-loading");
document.documentElement.classList.remove("app-startup-failed");
rustProxyRefresh.start();
const preferences = await loadAdminPreferences();
// Keep the startup screen until the account preferences (menu, layout, density)
// are applied, so the panel never appears first with defaults and then changes.
let preferences;
try { preferences = await loadAdminPreferences(); }
finally { document.documentElement.classList.remove("app-loading"); }
if (!authenticated || epoch !== authEpoch) return false;
window.rustProxyLogs?.applyPreferences(preferences);
window.rustProxyFileLogs?.applyPreferences(preferences);