kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fixed broken track table issue during upload
rodzic
7994ac497a
commit
b74517ff33
|
@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Ładowanie…
Reference in New Issue