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

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

diff --git a/src/components/AncestryBar.vue b/src/components/AncestryBar.vue
index 497c11c..e11725f 100644
--- a/src/components/AncestryBar.vue
+++ b/src/components/AncestryBar.vue
@@ -48,10 +48,10 @@ export default defineComponent({
 	},
 	methods: {
 		onTileClick(node: LayoutNode){
-			this.$emit('detached-ancestor-click', node);
+			this.$emit('ancestor-click', node);
 		},
 		onInfoIconClick(data: string){
-			this.$emit('info-icon-click', data);
+			this.$emit('info-click', data);
 		},
 		onWheelEvt(evt: WheelEvent){
 			// Possibly convert vertical scroll to horizontal
@@ -71,7 +71,7 @@ export default defineComponent({
 		this.scrollToEnd();
 	},
 	components: {Tile, },
-	emits: ['detached-ancestor-click', 'info-icon-click', ],
+	emits: ['ancestor-click', 'info-click', ],
 });
 </script>
 
@@ -79,6 +79,6 @@ export default defineComponent({
 <div :style="styles" @wheel.stop="onWheelEvt">
 	<tile v-for="(node, idx) in usedNodes" :key="node.name" class="shrink-0"
 		:layoutNode="node" :tolMap="tolMap" :nonAbsPos="true" :lytOpts="lytOpts" :uiOpts="uiOpts"
-		@leaf-click="onTileClick(nodes[idx])" @info-icon-click="onInfoIconClick"/>
+		@leaf-click="onTileClick(nodes[idx])" @info-click="onInfoIconClick"/>
 </div>
 </template>
-- 
cgit v1.2.3

