🐛 Fix config not saving from JSON editor

This commit is contained in:
Alicia Sykes
2024-04-13 14:05:49 +01:00
parent 91e4cfe14d
commit 4ea77a1015
4 changed files with 20 additions and 11 deletions

View File

@@ -119,12 +119,16 @@ export default {
},
watch: {
layoutOrientation(layout) {
localStorage.setItem(localStorageKeys.LAYOUT_ORIENTATION, layout);
this.layout = layout;
if (layout) {
localStorage.setItem(localStorageKeys.LAYOUT_ORIENTATION, layout);
this.layout = layout;
}
},
iconSize(size) {
localStorage.setItem(localStorageKeys.ICON_SIZE, size);
this.itemSizeBound = size;
if (size) {
localStorage.setItem(localStorageKeys.ICON_SIZE, size);
this.itemSizeBound = size;
}
},
},
methods: {