From 3a0d2b6ad7cfc09c03bab85ae312d9b533f9abb4 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Fri, 31 Jan 2025 12:33:15 +0100 Subject: [PATCH] refactor(front): populate tags dropdown with existing tags on search pages and let the user type custom ones --- front/src/components/library/Albums.vue | 4 ++-- front/src/components/library/Artists.vue | 4 ++-- front/src/components/library/Podcasts.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/components/library/Albums.vue b/front/src/components/library/Albums.vue index 884491ba6..3a1fb8020 100644 --- a/front/src/components/library/Albums.vue +++ b/front/src/components/library/Albums.vue @@ -49,8 +49,8 @@ const page = usePage() const tags = useRouteQuery('tag', []) const tagList = computed(() => ({ - current: tags.value, - others: [] + others: tags.value, + custom: [] })) const q = useRouteQuery('query', '') diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index 09355b3c2..07a725821 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -48,8 +48,8 @@ const page = usePage() const tags = useRouteQuery('tag', []) const tagList = computed(() => ({ - current: tags.value, - others: [] + others: tags.value, + custom: [] })) const q = useRouteQuery('query', '') diff --git a/front/src/components/library/Podcasts.vue b/front/src/components/library/Podcasts.vue index f644a6384..34e84663a 100644 --- a/front/src/components/library/Podcasts.vue +++ b/front/src/components/library/Podcasts.vue @@ -50,8 +50,8 @@ const page = usePage() const tags = useRouteQuery('tag', []) const tagList = computed(() => ({ - current: tags.value, - others: [] + others: tags.value, + custom: [] })) const q = useRouteQuery('query', '')