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

WebUI: Add support for custom table pagination size #300

Closed
wants to merge 3 commits into from

Conversation

pvomacka
Copy link

@pvomacka pvomacka commented Dec 2, 2016

New customization button opens dialog with field for setting the number of lines
in tables. After saving the new value there is new topic which starts refreshing
current table facet (if shown) and set all other facets expired. Therefore all
tables are immediately regenerated.

https://fedorahosted.org/freeipa/ticket/5742

Copy link
Member

@pvoborni pvoborni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some minor issues.


if (that.is_shown) that.refresh();

that.set_expired_flag();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the expiration flag be set first and then issuing the refresh?

* Javascript.
*
* @class
* @alternateClassName IPA.metadata_validator
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alternate name is IPA.integer_validator

@@ -250,6 +250,10 @@ class i18n_messages(Command):
"update": _("Update"),
"view": _("View"),
},
"customization": {
"customization": _("Customization"),
"table_pagination": _("Table Pagination Size"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using only "Pagination size". "Table" won't tell much to users. I.e. "what table?"

Pavel Vomacka added 3 commits March 8, 2017 13:11
Javascript integer validator checks whether value entered into field is number
and is not higher than Number.MAX_SAFE_INTEGER constant.

Part of: https://fedorahosted.org/freeipa/ticket/5742
Also added general setter and getter for attributes of config.

Part of: https://fedorahosted.org/freeipa/ticket/5742
New customization button opens dialog with field for setting the number of lines
in tables. After saving the new value there is new topic which starts refreshing
current table facet (if shown) and set all other facets expired. Therefore all
tables are immediately regenerated.

https://fedorahosted.org/freeipa/ticket/5742
@pvomacka
Copy link
Author

pvomacka commented Mar 8, 2017

@pvoborni Thank you for review. Proposed changes fixed.

@pvoborni pvoborni added the ack Pull Request approved, can be merged label Mar 8, 2017
@martbab martbab added the pushed Pull Request has already been pushed label Mar 8, 2017
@martbab
Copy link
Contributor

martbab commented Mar 8, 2017

master:

  • 7b69910 Add javascript integer validator
  • f78cc89 Make singleton from config module
  • e1dfc51 Add support for custom table pagination size

@martbab martbab closed this Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants