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 mahula
parent 240d8b2ff4
commit 203b809294

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