aboutsummaryrefslogtreecommitdiff
path: root/src/components/SettingsModal.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-29 18:02:40 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-29 18:10:06 +1000
commit0486614da4d5916ef18fc3975e4e2d281899f507 (patch)
treea4acce6b6f36625b36917487ad0217ba2d9b9837 /src/components/SettingsModal.vue
parent9d01f0f1691ec04a06bead7d9bf834c47c9a93d8 (diff)
Fix min/max-tile-sz not saving in-tandem where needed
Diffstat (limited to 'src/components/SettingsModal.vue')
-rw-r--r--src/components/SettingsModal.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue
index 58da129..b11c84c 100644
--- a/src/components/SettingsModal.vue
+++ b/src/components/SettingsModal.vue
@@ -135,12 +135,15 @@ export default defineComponent({
let maxInput = this.$refs.maxTileSzInput as HTMLInputElement;
if (option == 'minTileSz' && Number(minInput.value) > Number(maxInput.value)){
this.lytOpts.maxTileSz = this.lytOpts.minTileSz;
+ this.$emit('setting-chg', 'LYT', 'maxTileSz', {save: false});
} else if (option == 'maxTileSz' && Number(maxInput.value) < Number(minInput.value)){
this.lytOpts.minTileSz = this.lytOpts.maxTileSz;
+ this.$emit('setting-chg', 'LYT', 'minTileSz', {save: false});
}
}
//
- this.$emit('setting-chg', optionType, option, save);
+ this.$emit('setting-chg', optionType, option,
+ {save, relayout: optionType == 'LYT', reinit: optionType == 'UI' && option == 'useReducedTree'});
if (save){
// Make saved-indicator appear/animate
if (!this.saved){