From faf8f4f6a9c199f104addbf1b3633f863bd93f51 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 18 Nov 2023 14:38:55 -0700 Subject: [PATCH] feat: default to remote project search if no search area filter is selected --- src/views/DiscoverView.vue | 11 ++++++++--- src/views/SearchAreaView.vue | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/DiscoverView.vue b/src/views/DiscoverView.vue index bf547d6..6612a02 100644 --- a/src/views/DiscoverView.vue +++ b/src/views/DiscoverView.vue @@ -86,7 +86,7 @@ - +
  • acc.did); - this.searchLocal(); + if (this.searchBox) { + await this.searchLocal(); + } else { + this.isLocalActive = false; + this.isRemoteActive = true; + await this.searchAll(); + } } public async buildHeaders(): Promise { diff --git a/src/views/SearchAreaView.vue b/src/views/SearchAreaView.vue index 04dc243..a536fe3 100644 --- a/src/views/SearchAreaView.vue +++ b/src/views/SearchAreaView.vue @@ -214,6 +214,7 @@ export default class DiscoverView extends Vue { }, -1, ); + this.$router.back(); } catch (err) { this.$notify( {