aboutsummaryrefslogtreecommitdiff
path: root/src/components/Tile.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-12 13:06:49 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-12 13:06:49 +1000
commitb19bab9098e3eae71845faa7c8d17e9d03548d22 (patch)
tree987af00760fd2b76b07a92272c6dfa722df65cb6 /src/components/Tile.vue
parenta9fa4cf9a40c4e636772d743371163daddda159c (diff)
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.
Diffstat (limited to 'src/components/Tile.vue')
-rw-r--r--src/components/Tile.vue6
1 files changed, 3 insertions, 3 deletions
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){