Fixed broken track table issue during upload

This commit is contained in:
Eliot Berriot 2020-02-05 14:53:20 +01:00
parent 7994ac497a
commit b74517ff33
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
2 changed files with 11 additions and 3 deletions

View File

@ -4,6 +4,9 @@ export default {
defaultOrdering: {type: String, required: false}
},
computed: {
orderingConfig () {
return this.$store.state.ui.routePreferences[this.$route.name]
},
paginateBy: {
set(paginateBy) {
this.$store.commit('ui/paginateBy', {
@ -12,7 +15,7 @@ export default {
})
},
get() {
return this.$store.state.ui.routePreferences[this.$route.name].paginateBy
return this.orderingConfig.paginateBy
}
},
ordering: {
@ -23,7 +26,7 @@ export default {
})
},
get() {
return this.$store.state.ui.routePreferences[this.$route.name].ordering
return this.orderingConfig.ordering
}
},
orderingDirection: {
@ -34,7 +37,7 @@ export default {
})
},
get() {
return this.$store.state.ui.routePreferences[this.$route.name].orderingDirection
return this.orderingConfig.orderingDirection
}
},
},

View File

@ -77,6 +77,11 @@ export default {
orderingDirection: "-",
ordering: "creation_date",
},
"content.libraries.detail.upload": {
paginateBy: 50,
orderingDirection: "-",
ordering: "creation_date",
},
},
serviceWorker: {
refreshing: false,