AsgardCms / Platform

A modular multilingual CMS built with Laravel 5.
https://asgardcms.com/
MIT License
782 stars 241 forks source link

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

Open LukaszNiziolDWG opened 3 years ago

LukaszNiziolDWG commented 3 years ago

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 commented 3 years ago

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?