mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Update webapp/components/FilterMenu/OrderByFilter.vue
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
parent
240d8b2ff4
commit
203b809294
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user