fix(tags): allow adding and removing tags in filter toolbar #2448 #2390

2448-complete-tags
Flupsi 2025-06-05 16:22:41 +02:00
rodzic 2dcdfc9431
commit a97ec62911
4 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -153,6 +153,7 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
:get="model => { tags = model.currents.map(({ label }) => label) }"
:set="model => ({
...model,
others: [],
currents: tags.map(tag => ({ type: 'custom' as const, label: tag })),
})"
:label="t('components.library.Albums.label.tags')"

Wyświetl plik

@ -153,6 +153,7 @@ const paginateOptions = computed(() => sortedUniq([12, 30, 50, paginateBy.value]
:get="model => { tags = model.currents.map(({ label }) => label) }"
:set="model => ({
...model,
others: [],
currents: tags.map(tag => ({ type: 'custom' as const, label: tag })),
})"
:label="t('components.library.Artists.label.tags')"

Wyświetl plik

@ -179,6 +179,7 @@ const { to: upload } = useModal('upload')
:get="model => { tags = model.currents.map(({ label }) => label) }"
:set="model => ({
...model,
others: [],
currents: tags.map(tag => ({ type: 'custom' as const, label: tag })),
})"
:label="t('components.library.Podcasts.label.tags')"

Wyświetl plik

@ -237,6 +237,7 @@ const showCreateModal = ref(false)
:get="model => { tags = model.currents.map(({ label }) => label) }"
:set="model => ({
...model,
others: [],
currents: tags.map(tag => ({ type: 'custom' as const, label: tag })),
})"
:label="t('components.library.Podcasts.label.tags')"