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/SearchModal.vue | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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

diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 4ea5cea..93f7a59 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -36,7 +36,7 @@ export default defineComponent({
 	methods: {
 		onCloseClick(evt: Event){
 			if (evt.target == this.$el || (this.$refs.searchIcon as typeof SearchIcon).$el.contains(evt.target)){
-				this.$emit('search-close');
+				this.$emit('close');
 			}
 		},
 		onEnter(){
@@ -63,7 +63,7 @@ export default defineComponent({
 								this.tolMap.set(key, obj[key])
 							}
 						});
-						this.$emit('search-node', tolNodeName);
+						this.$emit('search', tolNodeName);
 					} else {
 						// Trigger failure animation
 						let input = this.$refs.searchInput as HTMLInputElement;
@@ -153,14 +153,14 @@ export default defineComponent({
 			}
 		},
 		onInfoIconClick(nodeName: string){
-			this.$emit('info-icon-click', nodeName);
+			this.$emit('info-click', nodeName);
 		},
 	},
 	mounted(){
 		(this.$refs.searchInput as HTMLInputElement).focus();
 	},
 	components: {SearchIcon, InfoIcon, },
-	emits: ['search-node', 'search-close', 'info-icon-click'],
+	emits: ['search', 'close', 'info-click'],
 });
 </script>
 
-- 
cgit v1.2.3

