minor showing collection filters

This commit is contained in:
lesion 2022-07-29 18:09:17 +02:00
parent f9ca4b7675
commit a253174f11
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -152,7 +152,9 @@ export default {
}, 100),
collectionFilters (collection) {
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(' - ')
},
async addFilter () {