Fixed broken track table issue during upload

merge-requests/1042/head
Eliot Berriot 2020-02-05 14:53:20 +01:00
rodzic 7994ac497a
commit b74517ff33
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6B501DFD73514E14
2 zmienionych plików z 11 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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