1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy-ui.git synced 2025-01-25 23:19:14 +00:00
lemmy-ui/src
Jarosław d98009c7d5
Disable "Next" button in Paginator when the next page is empty (#2114)
* Store communityLimit as a constant in the config

* Block Next button on communities list if the next page is empty

* Use this.props instead of undefined props, compare number to the length of the array, not the array itself

* Set nextDisabled prop for Paginator in registration-applications component

* Set nextDisabled prop in Paginator required

* Ignore nextDisabled prop in Paginator component used in person/inbox.tsx and modlog.tsx

* Set nextDisabled to true if community is not yet loaded or no more pages are expected

* Set nextDisabled to false for Paginator in emojis-form.tsx

* Fix swapped bool logic in community.tsx

* Set nextDisabled for Paginator in home.tsx

* Set nextDisabled for Comments and Posts in person-details.tsx

* Set nextDisabled for reports.tsx

* Set nextDisabled for search.tsx

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-09-07 09:33:43 -04:00
..
assets Update spoiler icon to diamond shape. (#2102) 2023-08-30 12:42:30 -04:00
client User inferno prompt instead of handrolled one (#1867) 2023-07-07 19:33:03 -04:00
server Add moderator view button (#1993) 2023-09-06 08:43:19 -04:00
shared Disable "Next" button in Paginator when the next page is empty (#2114) 2023-09-07 09:33:43 -04:00