From ebc481e62a56168bdbcb31df0f97eddf262d346a Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 23 Jun 2022 15:22:01 +1000
Subject: Adjust component event names

---
 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 3a8f34a..e95dc34 100644
--- a/src/components/SettingsModal.vue
+++ b/src/components/SettingsModal.vue
@@ -14,11 +14,11 @@ export default defineComponent({
 		onCloseClick(evt: Event){
 			if (evt.target == this.$el || (this.$refs.closeIcon as typeof CloseIcon).$el.contains(evt.target)){
 				this.saveSettings();
-				this.$emit('settings-close');
+				this.$emit('close');
 			}
 		},
 		onLytOptChg(){
-			this.$emit('layout-option-change');
+			this.$emit('layout-setting-chg');
 		},
 		onMinTileSzChg(){
 			let minInput = this.$refs.minTileSzInput as HTMLInputElement;
@@ -37,7 +37,7 @@ export default defineComponent({
 			this.onLytOptChg();
 		},
 		onTreeChg(){
-			this.$emit('tree-change');
+			this.$emit('tree-chg');
 		},
 		saveSettings(){
 			const savedLytOpts = ['tileSpacing', 'minTileSz', 'maxTileSz', 'layoutType', 'sweepMode', 'sweepToParent', ];
@@ -52,12 +52,12 @@ export default defineComponent({
 		},
 		onReset(){
 			localStorage.clear();
-			this.$emit('reset-settings');
+			this.$emit('reset');
 			console.log('Settings reset');
 		},
 	},
 	components: {CloseIcon, RButton, },
-	emits: ['settings-close', 'layout-option-change', 'tree-change', 'reset-settings', ],
+	emits: ['close', 'layout-setting-chg', 'tree-chg', 'reset', ],
 });
 </script>
 
-- 
cgit v1.2.3

