Update webapp/components/FilterMenu/OrderByFilter.vue

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Wolfgang Huß 2023-06-01 17:10:24 +02:00 committed by GitHub
parent 4fbdf70880
commit 28e94b381f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,25 +55,12 @@ export default {
let title
switch (buttonType) {
case 'asc':
if (this.orderedByCreationDate) {
title = this.$t('filter-menu.order.oldest.label')
} else {
title = this.$t('filter-menu.order.last.label')
}
break
return this.orderedByCreationDate ? this.$t('filter-menu.order.oldest.label') : this.$t('filter-menu.order.last.label')
case 'desc':
if (this.orderedByCreationDate) {
title = this.$t('filter-menu.order.newest.label')
} else {
title = this.$t('filter-menu.order.next.label')
}
break
return this.orderedByCreationDate ? this.$t('filter-menu.order.newest.label') : this.$t('filter-menu.order.next.label')
default:
title = ''
break
return ''
}
return title
},
buttonTitle(buttonType) {
let title