From 303f999b74cbf9a80ff9d073af4502b1facb37cc Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 1 Jan 2025 08:51:34 +0100 Subject: [PATCH] test include async results in global search --- .../components/inputs/GlobalSearchDialog.vue | 73 +++++++++++++++---- vue3/src/types/SearchTypes.ts | 4 +- 2 files changed, 59 insertions(+), 18 deletions(-) diff --git a/vue3/src/components/inputs/GlobalSearchDialog.vue b/vue3/src/components/inputs/GlobalSearchDialog.vue index 51a792106..31ea834a1 100644 --- a/vue3/src/components/inputs/GlobalSearchDialog.vue +++ b/vue3/src/components/inputs/GlobalSearchDialog.vue @@ -20,6 +20,7 @@ - {{ item.name.charAt(0) }} + {{ item.name.charAt(0) }} {{ item.name }} @@ -50,7 +51,7 @@ - {{$t('Close')}} + {{ $t('Close') }} @@ -60,12 +61,14 @@ diff --git a/vue3/src/types/SearchTypes.ts b/vue3/src/types/SearchTypes.ts index e6f65168f..59407b1d8 100644 --- a/vue3/src/types/SearchTypes.ts +++ b/vue3/src/types/SearchTypes.ts @@ -1,8 +1,8 @@ export interface SearchResult { name: string, - recipe_id?: number, + recipeId?: number, suffix?: string, description?: string, icon?: string, - image?: string, + image?: string|null, }