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
Conversation
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.
There are some minor issues.
install/ui/src/freeipa/facet.js
Outdated
|
|
||
| if (that.is_shown) that.refresh(); | ||
|
|
||
| that.set_expired_flag(); |
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.
Should the expiration flag be set first and then issuing the refresh?
install/ui/src/freeipa/field.js
Outdated
| * Javascript. | ||
| * | ||
| * @class | ||
| * @alternateClassName IPA.metadata_validator |
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.
alternate name is IPA.integer_validator
ipaserver/plugins/internal.py
Outdated
| @@ -250,6 +250,10 @@ class i18n_messages(Command): | |||
| "update": _("Update"), | |||
| "view": _("View"), | |||
| }, | |||
| "customization": { | |||
| "customization": _("Customization"), | |||
| "table_pagination": _("Table Pagination Size"), | |||
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.
What about using only "Pagination size". "Table" won't tell much to users. I.e. "what table?"
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
|
@pvoborni Thank you for review. Proposed changes fixed. |
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