mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-29 16:45:34 +02:00
🐛 Fixes item size/ layout buttons (#629)
This commit is contained in:
parent
064c64465e
commit
24e487cde5
@ -40,11 +40,11 @@ export default class ConfigAccumulator {
|
|||||||
usersAppConfig = appConfigFile;
|
usersAppConfig = appConfigFile;
|
||||||
}
|
}
|
||||||
// Some settings have their own local storage keys, apply them here
|
// Some settings have their own local storage keys, apply them here
|
||||||
usersAppConfig.layout = appConfigFile.layout
|
usersAppConfig.layout = localStorage[localStorageKeys.LAYOUT_ORIENTATION]
|
||||||
|| localStorage[localStorageKeys.LAYOUT_ORIENTATION]
|
|| appConfigFile.layout
|
||||||
|| defaultLayout;
|
|| defaultLayout;
|
||||||
usersAppConfig.iconSize = appConfigFile.iconSize
|
usersAppConfig.iconSize = localStorage[localStorageKeys.ICON_SIZE]
|
||||||
|| localStorage[localStorageKeys.ICON_SIZE]
|
|| appConfigFile.iconSize
|
||||||
|| defaultIconSize;
|
|| defaultIconSize;
|
||||||
// Don't let users modify users locally
|
// Don't let users modify users locally
|
||||||
if (appConfigFile.auth) usersAppConfig.auth = appConfigFile.auth;
|
if (appConfigFile.auth) usersAppConfig.auth = appConfigFile.auth;
|
||||||
@ -60,7 +60,7 @@ export default class ConfigAccumulator {
|
|||||||
try { localPageInfo = JSON.parse(localStorage[localStorageKeys.PAGE_INFO]); }
|
try { localPageInfo = JSON.parse(localStorage[localStorageKeys.PAGE_INFO]); }
|
||||||
catch (e) { ErrorHandler('Malformed pageInfo data in local storage'); }
|
catch (e) { ErrorHandler('Malformed pageInfo data in local storage'); }
|
||||||
}
|
}
|
||||||
const filePageInfo = this.conf ? this.conf.pageInfo || {} : {};
|
const filePageInfo = this.conf?.pageInfo || {};
|
||||||
return { ...defaultPageInfo, ...filePageInfo, ...localPageInfo };
|
return { ...defaultPageInfo, ...filePageInfo, ...localPageInfo };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user