aboutsummaryrefslogtreecommitdiff
path: root/src/components/SettingsModal.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-27 02:24:27 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-27 02:33:38 +1000
commita59095b8f87b470872a692b913e6bc2a8cca759b (patch)
tree0bf8fc0c9aa40757608d8601c090e80e217dd482 /src/components/SettingsModal.vue
parentea542b6f93f90235b04aa233869978774b1e790e (diff)
Clean up code in HelpModal and AncestryBar
Diffstat (limited to 'src/components/SettingsModal.vue')
-rw-r--r--src/components/SettingsModal.vue10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/SettingsModal.vue b/src/components/SettingsModal.vue
index f505c99..b09af07 100644
--- a/src/components/SettingsModal.vue
+++ b/src/components/SettingsModal.vue
@@ -26,6 +26,11 @@ export default defineComponent({
};
},
},
+ watch: {
+ sweepLeaves(newVal, oldVal){
+ this.lytOpts.layoutType = newVal ? 'sweep' : 'rect';
+ },
+ },
methods: {
onClose(evt: Event){
if (evt.target == this.$el || (this.$refs.closeIcon as typeof CloseIcon).$el.contains(evt.target)){
@@ -47,11 +52,6 @@ export default defineComponent({
this.$emit('setting-chg', setting);
},
},
- watch: {
- sweepLeaves(newVal, oldVal){
- this.lytOpts.layoutType = newVal ? 'sweep' : 'rect';
- },
- },
components: {RButton, CloseIcon, },
emits: ['close', 'setting-chg', 'reset', ],
});