Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Make admin light/dark mode toggle show target state instead of current state (#1793)

Leendert de Borst5a12f6215e2d
diff --git a/apps/server/AliasVault.Admin/wwwroot/js/dark-mode.js b/apps/server/AliasVault.Admin/wwwroot/js/dark-mode.js
index fffb0b9ae..3ef63fde9 100644
--- a/apps/server/AliasVault.Admin/wwwroot/js/dark-mode.js
+++ b/apps/server/AliasVault.Admin/wwwroot/js/dark-mode.js
@@ -18,9 +18,9 @@ function initDarkModeSwitcher() {
if (localStorage.getItem('color-theme') === 'dark' ||
(!localStorage.getItem('color-theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
- themeToggleDarkIcon?.classList.remove('hidden');
- } else {
themeToggleLightIcon?.classList.remove('hidden');
+ } else {
+ themeToggleDarkIcon?.classList.remove('hidden');
}
let event = new Event('dark-mode');