mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix typo of 'buttonLabel'
This commit is contained in:
parent
4eeaf7a793
commit
9fee1b43c8
@ -4,7 +4,7 @@
|
||||
<li class="item">
|
||||
<labeled-button
|
||||
icon="sort-amount-asc"
|
||||
:label="buttonLable('desc')"
|
||||
:label="buttonLabel('desc')"
|
||||
:filled="orderBy === orderedDesc"
|
||||
:title="buttonTitle('desc')"
|
||||
@click="setOrder(orderedDesc)"
|
||||
@ -14,7 +14,7 @@
|
||||
<li class="item">
|
||||
<labeled-button
|
||||
icon="sort-amount-desc"
|
||||
:label="buttonLable('asc')"
|
||||
:label="buttonLabel('asc')"
|
||||
:filled="orderBy === orderedAsc"
|
||||
:title="buttonTitle('asc')"
|
||||
@click="setOrder(orderedAsc)"
|
||||
@ -51,12 +51,16 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
buttonLable(buttonType) {
|
||||
buttonLabel(buttonType) {
|
||||
switch (buttonType) {
|
||||
case 'asc':
|
||||
return this.orderedByCreationDate ? this.$t('filter-menu.order.oldest.label') : this.$t('filter-menu.order.last.label')
|
||||
return this.orderedByCreationDate
|
||||
? this.$t('filter-menu.order.oldest.label')
|
||||
: this.$t('filter-menu.order.last.label')
|
||||
case 'desc':
|
||||
return this.orderedByCreationDate ? this.$t('filter-menu.order.newest.label') : this.$t('filter-menu.order.next.label')
|
||||
return this.orderedByCreationDate
|
||||
? this.$t('filter-menu.order.newest.label')
|
||||
: this.$t('filter-menu.order.next.label')
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
@ -64,9 +68,13 @@ export default {
|
||||
buttonTitle(buttonType) {
|
||||
switch (buttonType) {
|
||||
case 'asc':
|
||||
return this.orderedByCreationDate ? this.$t('filter-menu.order.oldest.hint') : this.$t('filter-menu.order.last.hint')
|
||||
return this.orderedByCreationDate
|
||||
? this.$t('filter-menu.order.oldest.hint')
|
||||
: this.$t('filter-menu.order.last.hint')
|
||||
case 'desc':
|
||||
return this.orderedByCreationDate ? this.$t('filter-menu.order.newest.hint') : this.$t('filter-menu.order.next.hint')
|
||||
return this.orderedByCreationDate
|
||||
? this.$t('filter-menu.order.newest.hint')
|
||||
: this.$t('filter-menu.order.next.hint')
|
||||
default:
|
||||
return ''
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user