From b59e007e6d23483abe8973fe5c21412ddf8709b7 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Fri, 25 Mar 2022 19:27:32 +1100
Subject: Add search enter/escape, and close-icon svgs

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

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

diff --git a/src/components/TileTree.vue b/src/components/TileTree.vue
index 239002b..6ea78c5 100644
--- a/src/components/TileTree.vue
+++ b/src/components/TileTree.vue
@@ -229,6 +229,10 @@ export default defineComponent({
 		onSearchClose(){
 			this.searchOpen = false;
 		},
+		onSearchNode(node){
+			console.log('Searched for: ' + node);
+			this.searchOpen = false;
+		},
 		//
 		closeModalsAndSettings(){
 			this.infoModalNode = null;
@@ -276,7 +280,8 @@ export default defineComponent({
 		  <circle cx="11" cy="11" r="8"/>
 		  <line x1="21" y1="21" x2="16.65" y2="16.65"/>
 		</svg>
-		<search-modal v-else :layoutTree="layoutTree" :options="componentOptions" @search-close="onSearchClose"/>
+		<search-modal v-else :layoutTree="layoutTree" :options="componentOptions"
+			@search-close="onSearchClose" @search-node="onSearchNode"/>
 	</transition>
 	<settings :isOpen="settingsOpen" :layoutOptions="layoutOptions" :componentOptions="componentOptions"
 		@settings-open="onSettingsOpen" @settings-close="onSettingsClose"
-- 
cgit v1.2.3

