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/TileImg.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/src/components/TileImg.vue b/src/components/TileImg.vue
index 5a3a2f8..2445f98 100644
--- a/src/components/TileImg.vue
+++ b/src/components/TileImg.vue
@@ -86,9 +86,10 @@ export default defineComponent({
 			this.infoMouseOver = false;
 		},
 		onInfoClick(evt: Event){
-			console.log('Clicked on info icon: ' + this.layoutNode.tolNode.name);
+			this.$emit('info-icon-clicked', this.layoutNode);
 		},
 	},
+	emits: ['info-icon-clicked'],
 });
 </script>
 
-- 
cgit v1.2.3

