MDL-67623 block overview: fix pagination regression
authorTom Dickman <tomdickman@catalyst-au.net>
Thu, 19 Nov 2020 04:40:09 +0000 (15:40 +1100)
committerTom Dickman <tomdickman@catalyst-au.net>
Mon, 14 Dec 2020 02:15:26 +0000 (13:15 +1100)
commitc00fc9707faf74950264bd977d13b1a3a2eeae78
tree050a6b9a2c1e8ece0fbe4c5c0ab72fd961aad4b8
parentc307f3b1384a03081ef6e16f42e9bdc1b8964ba4
MDL-67623 block overview: fix pagination regression

Fixed a regression caused by MDL-64194 resulting in Dashboard - Course
overview pagination not working from second page of courses onwards.

Course overview block should now do the following:
- Display no pagination controls when user has no courses
- Display no pagination controls when less than 12 courses to display
- Only display pagination controls up to the number of courses user is
enrolled in
- Work correctly when on a page greater than the second page.
blocks/myoverview/amd/build/view.min.js
blocks/myoverview/amd/build/view.min.js.map
blocks/myoverview/amd/src/view.js
blocks/myoverview/classes/output/main.php
blocks/myoverview/tests/behat/block_myoverview_pagelimit_persistence.feature
blocks/myoverview/tests/behat/block_myoverview_pagination.feature [new file with mode: 0644]
lib/amd/build/paged_content_factory.min.js
lib/amd/build/paged_content_factory.min.js.map
lib/amd/src/paged_content_factory.js
lib/templates/paged_content_paging_bar.mustache