-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(meta): add option to display mandatory field hint #98
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #98 +/- ##
==========================================
+ Coverage 74.48% 74.68% +0.19%
==========================================
Files 28 28
Lines 388 391 +3
Branches 123 125 +2
==========================================
+ Hits 289 292 +3
Misses 64 64
Partials 35 35 ☔ View full report in Codecov by Sentry. |
apps/demo/src/app/login.config.ts
Outdated
formMeta: { | ||
shouldDisplayRequiredHint: true, | ||
}, |
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.
🎯 suggestion: should be the opposite to match maximum case like actual
if (!validation || !validation?.required?.value) { | ||
shouldDisplayRequiredHint = false; | ||
} |
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.
🎯 suggestion: and the invert condition here. Should be false
by default and set to true
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.
The goal here is to force the boolean to be false
if and only if the field is optionnal. If it is required, we want to use the default value.
42609a0
to
199ebe1
Compare
Description
Add the possibility for a given form to handle metas.
Add the meta
shouldDisplayRequiredHint
that conditions displaying a*
next to a field's label, if that label is mandatory.Related Issue
None.
Checklist