From b19bab9098e3eae71845faa7c8d17e9d03548d22 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 12 May 2022 13:06:49 +1000
Subject: Enable info-display for search suggestions

Add info-icon to SearchModal, sending event when clicked.
Change App to allow info-modal display on top of search-modal.

Also make info-icon-click events send a node name instead of a LayoutNode,
and make TileInfoModal and server get/send additional node info, seeing
as the client might not have info about the node's common name, tips,
etc, anymore.
---
 src/components/Tile.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index ddf2fc0..86770ef 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -315,7 +315,7 @@ export default defineComponent({
 			this.$emit(this.isLeaf ? 'leaf-click-held' : 'nonleaf-click-held', this.layoutNode);
 		},
 		onInfoIconClick(evt: Event){
-			this.$emit('info-icon-click', this.layoutNode);
+			this.$emit('info-icon-click', this.layoutNode.name);
 		},
 		// Mouse hover handling
 		onMouseEnter(evt: Event){
@@ -341,8 +341,8 @@ export default defineComponent({
 		onInnerNonleafClickHeld(node: LayoutNode){
 			this.$emit('nonleaf-click-held', node);
 		},
-		onInnerInfoIconClick(node: LayoutNode){
-			this.$emit('info-icon-click', node);
+		onInnerInfoIconClick(nodeName: string){
+			this.$emit('info-icon-click', nodeName);
 		},
 		// Other
 		onTransitionEnd(evt: Event){
-- 
cgit v1.2.3

