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
203b809294
commit
87c47bc83d
@ -63,28 +63,14 @@ export default {
|
||||
}
|
||||
},
|
||||
buttonTitle(buttonType) {
|
||||
let title
|
||||
switch (buttonType) {
|
||||
case 'asc':
|
||||
if (this.orderedByCreationDate) {
|
||||
title = this.$t('filter-menu.order.oldest.hint')
|
||||
} else {
|
||||
title = this.$t('filter-menu.order.last.hint')
|
||||
}
|
||||
break
|
||||
return this.orderedByCreationDate ? this.$t('filter-menu.order.oldest.hint') : this.$t('filter-menu.order.last.hint')
|
||||
case 'desc':
|
||||
if (this.orderedByCreationDate) {
|
||||
title = this.$t('filter-menu.order.newest.hint')
|
||||
} else {
|
||||
title = this.$t('filter-menu.order.next.hint')
|
||||
}
|
||||
break
|
||||
|
||||
return this.orderedByCreationDate ? this.$t('filter-menu.order.newest.hint') : this.$t('filter-menu.order.next.hint')
|
||||
default:
|
||||
title = ''
|
||||
break
|
||||
return ''
|
||||
}
|
||||
return title
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user