From d19e4e971f737b491742e8b77e411ae5fbc73bb4 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 24 Mar 2022 14:57:45 +1100
Subject: Add TileInfoModal and associated events

---
 src/components/ParentBar.vue | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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

diff --git a/src/components/ParentBar.vue b/src/components/ParentBar.vue
index 26061b7..0f73008 100644
--- a/src/components/ParentBar.vue
+++ b/src/components/ParentBar.vue
@@ -54,16 +54,21 @@ export default defineComponent({
 		onClick(node: LayoutNode){
 			this.$emit('sepd-parent-clicked', node);
 		},
+		onInnerInfoIconClicked(data: LayoutNode){
+			this.$emit('info-icon-clicked', data);
+		}
 	},
 	components: {
 		TileImg,
 	},
+	emits: ['sepd-parent-clicked', 'info-icon-clicked'],
 });
 </script>
 
 <template>
 <div :style="styles">
 	<tile-img v-for="node in nodes" :key="node.tolNode.name"
-		:layoutNode="node" :tileSz="tileSz" :options="options" @click="onClick(node)"/>
+		:layoutNode="node" :tileSz="tileSz" :options="options"
+		@click="onClick(node)" @info-icon-clicked="onInnerInfoIconClicked"/>
 </div>
 </template>
-- 
cgit v1.2.3

