Verified Commit b74517ff authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken track table issue during upload

parent 7994ac49
......@@ -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
}
},
},
......
......@@ -77,6 +77,11 @@ export default {
orderingDirection: "-",
ordering: "creation_date",
},
"content.libraries.detail.upload": {
paginateBy: 50,
orderingDirection: "-",
ordering: "creation_date",
},
},
serviceWorker: {
refreshing: false,
......
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