Fix non-existant $t in data
This commit is contained in:
parent
57b32add03
commit
0320872506
|
@ -96,12 +96,7 @@ export default {
|
|||
query: this.defaultQuery,
|
||||
paginateBy: parseInt(this.defaultPaginateBy || 12),
|
||||
orderingDirection: defaultOrdering.direction,
|
||||
ordering: defaultOrdering.field,
|
||||
orderingOptions: [
|
||||
['creation_date', this.$t('Creation date')],
|
||||
['artist_name', this.$t('Artist name')],
|
||||
['user__username', this.$t('User')]
|
||||
]
|
||||
ordering: defaultOrdering.field
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
@ -141,6 +136,15 @@ export default {
|
|||
this.page = page
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
orderingOptions: function () {
|
||||
return [
|
||||
['creation_date', this.$t('Creation date')],
|
||||
['artist_name', this.$t('Artist name')],
|
||||
['user__username', this.$t('User')]
|
||||
]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
page () {
|
||||
this.updateQueryString()
|
||||
|
|
Loading…
Reference in New Issue