Commit 03208725 authored by Bat's avatar Bat
Browse files

Fix non-existant $t in data

parent 57b32add
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment