This commit is contained in:
Mateusz Gruszczyński committed 2026-10-15 11:10:49 +02:00
1 parent b757b34a31
commit 5a36bb0c4b
20 files changed
+356 -186

No files matched your search

+1
View File
@@ -16,6 +16,7 @@ window.rustProxyStreamDashboard = (() => {
}
function syncVisibility(hiddenOverride = null) {
const prefs = window.rustProxyPreferences?.current?.();
// While unlocked, currentDraft is authoritative until Save or Cancel.
const hidden = new Set(hiddenOverride ?? window.rustProxyInlineLayout?.currentDraft?.()?.hidden
?? prefs?.dashboard_hidden_widgets ?? ADMIN_APPEARANCE_DEFAULTS.dashboard_hidden_widgets);
for (const id of ids) if (card(id)) card(id).hidden = hidden.has(id);