From a59095b8f87b470872a692b913e6bc2a8cca759b Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Mon, 27 Jun 2022 02:24:27 +1000
Subject: Clean up code in HelpModal and AncestryBar

---
 src/components/SettingsModal.vue | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/components/SettingsModal.vue')

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', ],
 });
-- 
cgit v1.2.3

