From 6d4ece15a5a65e0219f69dc88e6e17a1f5d111ee Mon Sep 17 00:00:00 2001 From: Brian Savage Date: Tue, 16 Apr 2024 11:33:28 -0400 Subject: [PATCH] Add Link Generating Button to Search --- src/components/AppMap.ts | 10 ++++++++++ src/components/AppMap.vue | 1 + 2 files changed, 11 insertions(+) diff --git a/src/components/AppMap.ts b/src/components/AppMap.ts index be779c9..8c93787 100644 --- a/src/components/AppMap.ts +++ b/src/components/AppMap.ts @@ -986,6 +986,16 @@ export default class AppMap extends mixins(MixinUtil) { this.searchThrottler(); } + searchSetLink() { + const query = this.searchGetQuery(); + this.$router.replace({ + path: this.$route.fullPath, + query: { + q: query, + } + }) + } + searchOnAdd() { this.searchAddGroup(this.searchGetQuery()); this.searchQuery = ''; diff --git a/src/components/AppMap.vue b/src/components/AppMap.vue index 64db4c4..2b08e21 100644 --- a/src/components/AppMap.vue +++ b/src/components/AppMap.vue @@ -212,6 +212,7 @@ Showing only the first {{MAX_SEARCH_RESULT_COUNT}} results.
Add to map Hide + Link