minor showing collection filters

This commit is contained in:
lesion
2022-07-29 18:09:17 +02:00
parent f9ca4b7675
commit a253174f11

View File

@@ -152,7 +152,9 @@ export default {
}, 100), }, 100),
collectionFilters (collection) { collectionFilters (collection) {
return collection.filters.map(f => { return collection.filters.map(f => {
return '(' + f.tags?.join(', ') + f.places?.map(p => p.name).join(', ') + ')' const tags = f.tags?.join(', ')
const places = f.places?.map(p => p.name).join(', ')
return '(' + (tags && places ? tags + ' - ' + places : tags + places) + ')'
}).join(' - ') }).join(' - ')
}, },
async addFilter () { async addFilter () {