Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with listing files in pagination greater than 1. #805

Open
LukaszNiziolDWG opened this issue Jan 14, 2021 · 1 comment
Open

Problem with listing files in pagination greater than 1. #805

LukaszNiziolDWG opened this issue Jan 14, 2021 · 1 comment

Comments

@LukaszNiziolDWG
Copy link

When triggering a directory on pagination higher than 1, the system remembers the pagination value.

For example: If we go to the directory on pagination position "4", the system remembers this position. Then if we go to the nested directory and by default we find ourselves in the "1" position of the pagination, the system doesn't reset this position ("4" remains in the memory). This behavior of the system causes the files not be displayed.

Make a correction in MediaList.vue in enterFolder method:
At the end of the method you need to trigger the function: this.handleCurrentChange(1);

@mikemand
Copy link
Contributor

This should already be happening on line 218 of MediaList.vue. There is a watcher that watches VueRouter (a.k.a. $route; line 170) for changes and calls the function fetchMediaData. Do you have any error messages in your browser's console?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants