Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion changelog/unreleased/enhancement-add-pagination
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Enhancement: Add pagination

We've added pagination to all files lists. Current limit for displayed resources is 100.

https://github.com/owncloud/web/pull/5224
https://github.com/owncloud/web/pull/5224
https://github.com/owncloud/web/pull/5309
8 changes: 6 additions & 2 deletions packages/web-app-files/src/views/LocationPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,12 @@ export default {

watch: {
$route: {
handler: function() {
this.navigateToTarget(this.$route)
handler: function(to, from) {
const sameRoute = to.name === from?.name
const sameItem = to.params?.item === from?.params?.item
if (!sameRoute || !sameItem) {
this.navigateToTarget(this.$route)
}
this.$_filesListPagination_updateCurrentPage()
},
immediate: true
Expand Down
5 changes: 4 additions & 1 deletion packages/web-app-files/src/views/Personal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ export default {
}

const sameRoute = to.name === from?.name
this.loadResources(sameRoute)
const sameItem = to.params?.item === from?.params?.item
if (!sameRoute || !sameItem) {
this.loadResources(sameRoute)
}
this.$_filesListPagination_updateCurrentPage()
},
immediate: true
Expand Down
5 changes: 4 additions & 1 deletion packages/web-app-files/src/views/PublicFiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ export default {
$route: {
handler: function(to, from) {
const sameRoute = to.name === from?.name
this.loadResources(sameRoute)
const sameItem = to.params?.item === from?.params?.item
if (!sameRoute || !sameItem) {
this.loadResources(sameRoute)
}
this.$_filesListPagination_updateCurrentPage()
},
immediate: true
Expand Down