Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhance EditModal to refresh the helperText field value based on validationHook result #772

Merged

Conversation

sgratch
Copy link
Collaborator

@sgratch sgratch commented Nov 7, 2023

For Enable refreshing the displayed value of the helperText field of the EditModal component, based on the ValidationResults (e.g., success, warning), need to set it to the validation.helperText value instead of the constant helperText prop value.

If validation.helperText is set to an empty string '' (in case of an initial state or for backward compatible use), then use the initial helperText prop as was done before this fix.

…dationHook result

For supporting refreshing the helperText field value displayed, based on the
ValidationResults (e.g., success, warning), need to set it to the
validation.helperText value instead of the constant helperText prop
value.

If validation.helperText is set to '' (initial state or for backward compatible use),
then use the initial helperText prop as was done before this fix.

Signed-off-by: Sharon Gratch <sgratch@redhat.com>
@sgratch sgratch force-pushed the editModal-update-helptext-when-valueChanged branch from 832970d to 3485608 Compare November 7, 2023 16:54
Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sgratch sgratch requested review from yaacov and rszwajko November 7, 2023 17:08
@yaacov yaacov merged commit 0faeeeb into kubev2v:main Nov 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants