diff --git a/front/src/components/mixins/Ordering.vue b/front/src/components/mixins/Ordering.vue index befce8faa..ec11b0b00 100644 --- a/front/src/components/mixins/Ordering.vue +++ b/front/src/components/mixins/Ordering.vue @@ -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 } }, }, diff --git a/front/src/store/ui.js b/front/src/store/ui.js index 9baf0596c..1146e5201 100644 --- a/front/src/store/ui.js +++ b/front/src/store/ui.js @@ -77,6 +77,11 @@ export default { orderingDirection: "-", ordering: "creation_date", }, + "content.libraries.detail.upload": { + paginateBy: 50, + orderingDirection: "-", + ordering: "creation_date", + }, }, serviceWorker: { refreshing: false,