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">
|
<li class="item">
|
||||||
<labeled-button
|
<labeled-button
|
||||||
icon="sort-amount-asc"
|
icon="sort-amount-asc"
|
||||||
:label="buttonLable('desc')"
|
:label="buttonLabel('desc')"
|
||||||
:filled="orderBy === orderedDesc"
|
:filled="orderBy === orderedDesc"
|
||||||
:title="buttonTitle('desc')"
|
:title="buttonTitle('desc')"
|
||||||
@click="setOrder(orderedDesc)"
|
@click="setOrder(orderedDesc)"
|
||||||
@ -14,7 +14,7 @@
|
|||||||
<li class="item">
|
<li class="item">
|
||||||
<labeled-button
|
<labeled-button
|
||||||
icon="sort-amount-desc"
|
icon="sort-amount-desc"
|
||||||
:label="buttonLable('asc')"
|
:label="buttonLabel('asc')"
|
||||||
:filled="orderBy === orderedAsc"
|
:filled="orderBy === orderedAsc"
|
||||||
:title="buttonTitle('asc')"
|
:title="buttonTitle('asc')"
|
||||||
@click="setOrder(orderedAsc)"
|
@click="setOrder(orderedAsc)"
|
||||||
@ -51,12 +51,16 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
buttonLable(buttonType) {
|
buttonLabel(buttonType) {
|
||||||
switch (buttonType) {
|
switch (buttonType) {
|
||||||
case 'asc':
|
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':
|
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:
|
default:
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
@ -64,9 +68,13 @@ export default {
|
|||||||
buttonTitle(buttonType) {
|
buttonTitle(buttonType) {
|
||||||
switch (buttonType) {
|
switch (buttonType) {
|
||||||
case 'asc':
|
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':
|
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:
|
default:
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user