Added error message if user attribute save fails (#26592)

* added error message

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

* feedback

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>

---------

Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com>
Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2024-01-31 12:22:13 +00:00 committed by GitHub
parent c1ae9a0817
commit 1281cbf0c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -3043,4 +3043,5 @@ enableClientSignatureRequiredModal=Enable client signature required
selectBindType=Select bind type
searchClientAuthorizationResource=Search resource
searchClientAuthorizationPolicy=Search policy
searchClientAuthorizationPermission=Search permission
searchClientAuthorizationPermission=Search permission
userNotSaved=The user has not been saved\: {{error}}

View file

@ -149,6 +149,7 @@ export default function EditUser() {
if (isUserProfileError(error)) {
setUserProfileServerError(error, form.setError, ((key, param) =>
t(key as string, param as any)) as TFunction);
addError("userNotSaved", error);
} else {
addError("userCreateError", error);
}