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