From 8cdcfb61bda1f9a2513d40240ae5f2a485311534 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Wed, 23 Mar 2022 21:01:04 +1100
Subject: Make parent-bar-tile clicks restore hidden parents

---
 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 8bd513a..26061b7 100644
--- a/src/components/ParentBar.vue
+++ b/src/components/ParentBar.vue
@@ -50,6 +50,11 @@ export default defineComponent({
 			};
 		},
 	},
+	methods: {
+		onClick(node: LayoutNode){
+			this.$emit('sepd-parent-clicked', node);
+		},
+	},
 	components: {
 		TileImg,
 	},
@@ -59,6 +64,6 @@ export default defineComponent({
 <template>
 <div :style="styles">
 	<tile-img v-for="node in nodes" :key="node.tolNode.name"
-		:layoutNode="node" :tileSz="tileSz" :options="options"/>
+		:layoutNode="node" :tileSz="tileSz" :options="options" @click="onClick(node)"/>
 </div>
 </template>
-- 
cgit v1.2.3

