refactor(front): populate tags dropdown with existing tags on search pages and let the user type custom ones

This commit is contained in:
ArneBo 2025-01-31 12:33:15 +01:00
parent 6eabf140d9
commit 3a0d2b6ad7
3 changed files with 6 additions and 6 deletions

View File

@ -49,8 +49,8 @@ const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = computed(() => ({
current: tags.value,
others: []
others: tags.value,
custom: []
}))
const q = useRouteQuery('query', '')

View File

@ -48,8 +48,8 @@ const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = computed(() => ({
current: tags.value,
others: []
others: tags.value,
custom: []
}))
const q = useRouteQuery('query', '')

View File

@ -50,8 +50,8 @@ const page = usePage()
const tags = useRouteQuery<string[]>('tag', [])
const tagList = computed(() => ({
current: tags.value,
others: []
others: tags.value,
custom: []
}))
const q = useRouteQuery('query', '')