-
Notifications
You must be signed in to change notification settings - Fork 338
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
Disable "Next" button in Paginator when the next page is empty #2114
Changes from all commits
56afdb8
52d0655
d35d838
4a22813
c4bc779
2345c16
b919622
d16a7e6
5ea599a
fe4d56f
d3ee464
bc8b79c
c60f181
1876efa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -267,7 +267,11 @@ export class EmojiForm extends Component<EmojiFormProps, EmojiFormState> { | |
{I18NextService.i18n.t("add_custom_emoji")} | ||
</button> | ||
|
||
<Paginator page={this.state.page} onChange={this.handlePageChange} /> | ||
<Paginator | ||
page={this.state.page} | ||
onChange={this.handlePageChange} | ||
nextDisabled={false} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there never a time that this needs to be disabled? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It needs to be disabled when there are multiple lists (because the API doesn't combine them) |
||
/> | ||
</div> | ||
</div> | ||
); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -860,7 +860,11 @@ export class Modlog extends Component< | |
</thead> | ||
{this.combined} | ||
</table> | ||
<Paginator page={page} onChange={this.handlePageChange} /> | ||
<Paginator | ||
page={page} | ||
onChange={this.handlePageChange} | ||
nextDisabled={false} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
/> | ||
</div> | ||
); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the
|| false
necessary here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, it's a residue after nextDisabled was optional to not pass "undefined" to the property, I'll fix it