-
Notifications
You must be signed in to change notification settings - Fork 95
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
Validate rows per page setting and fix tooltips #2478
Validate rows per page setting and fix tooltips #2478
Conversation
Codecov Report
@@ Coverage Diff @@
## gsa-20.08 #2478 +/- ##
=============================================
+ Coverage 52.76% 53.07% +0.30%
=============================================
Files 1070 1072 +2
Lines 25789 25892 +103
Branches 7312 7396 +84
=============================================
+ Hits 13607 13741 +134
+ Misses 11058 11029 -29
+ Partials 1124 1122 -2
Continue to review full report at Codecov.
|
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.
Just a small change. No need to create a new function on every render.
Co-authored-by: Björn Ricks <[email protected]>
What:
The "Rows Per Page" setting is restricted to use a value greater than 0, because 0 makes no sense in the first place and is showing at least 1 rows in the end. The new validation rule also prohibits an empty field at the same time.
Helping tooltips are now lazy translated because otherwise with the normal translation the error message was undefined.
Why:
Improve UX with helping tooltips and fix a bug
How:
Tooltips are now shown in the createProcessDialog and the rows per page setting in der userSettings dialog. The setting is invalid if the input is 0 or empty.
Checklist: