Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:bug: Fixes hide settings in conf (#329)

Alicia Sykes3ed82624957f
diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue
index dd3834f1..e81f17b9 100644
--- a/src/components/Settings/SettingsContainer.vue
+++ b/src/components/Settings/SettingsContainer.vue
@@ -122,8 +122,9 @@ export default {
getSettingsVisibility() {
const screenWidth = document.body.clientWidth;
if (screenWidth && screenWidth < 600) return false;
- return JSON.parse(localStorage[localStorageKeys.HIDE_SETTINGS]
- || (this.visibleComponents || defaultVisibleComponents).settings);
+ if ((this.visibleComponents || {}).settings === false) return false;
+ if (localStorage[localStorageKeys.HIDE_SETTINGS] === 'false') return false;
+ return defaultVisibleComponents.settings;
},
},
};