Skip to content
Snippets Groups Projects
Commit e0d86b24 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch 'broken-pagination-library' into 'develop'

Fixed broken pagination in uploads table

See merge request funkwhale/funkwhale!1011
parents 98e1873a a48cccc5
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,16 @@ export default {
orderingDirection: "-",
ordering: "creation_date",
},
"content.libraries.files": {
paginateBy: 50,
orderingDirection: "-",
ordering: "creation_date",
},
"content.libraries.detail": {
paginateBy: 50,
orderingDirection: "-",
ordering: "creation_date",
},
},
serviceWorker: {
refreshing: false,
......
......@@ -175,7 +175,7 @@
<div>
<pagination
v-if="result && result.count > paginateBy"
@page-changed="selectPage"
@page-changed="page = $event; fetchData()"
:compact="true"
:current="page"
:paginate-by="paginateBy"
......@@ -231,13 +231,10 @@ export default {
isLoading: false,
result: null,
page: 1,
paginateBy: 25,
search: {
query: this.defaultQuery,
tokens: parseTokens(normalizeQuery(this.defaultQuery))
},
orderingDirection: "-",
ordering: "creation_date",
orderingOptions: [
["creation_date", "creation_date"],
["title", "track_title"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment