From 790111dcc01a0035cd4598cccb72c27ee76faa83 Mon Sep 17 00:00:00 2001 From: upsiflu Date: Fri, 14 Mar 2025 13:32:44 +0100 Subject: [PATCH] feat(front): [WIP] search modal layout --- front/src/ui/modals/Search.vue | 53 +++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/front/src/ui/modals/Search.vue b/front/src/ui/modals/Search.vue index 00b715939..bc317a02d 100644 --- a/front/src/ui/modals/Search.vue +++ b/front/src/ui/modals/Search.vue @@ -32,6 +32,13 @@ const isLoading = ref(false) const results = ref(null) const search = async () => { + + // If query has the shape of a federated object, search the federation + + + // Else, use the user database endpoint to search + + if (queryDebounced.value.length < 1) { isOpen.value = false return @@ -169,33 +176,39 @@ const toggle = (id: QueryType): void => { autofocus icon="bi-search" /> - - - - - -
+ +