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:
parent
c1ae9a0817
commit
1281cbf0c0
2 changed files with 3 additions and 1 deletions
|
@ -3043,4 +3043,5 @@ enableClientSignatureRequiredModal=Enable client signature required
|
||||||
selectBindType=Select bind type
|
selectBindType=Select bind type
|
||||||
searchClientAuthorizationResource=Search resource
|
searchClientAuthorizationResource=Search resource
|
||||||
searchClientAuthorizationPolicy=Search policy
|
searchClientAuthorizationPolicy=Search policy
|
||||||
searchClientAuthorizationPermission=Search permission
|
searchClientAuthorizationPermission=Search permission
|
||||||
|
userNotSaved=The user has not been saved\: {{error}}
|
|
@ -149,6 +149,7 @@ export default function EditUser() {
|
||||||
if (isUserProfileError(error)) {
|
if (isUserProfileError(error)) {
|
||||||
setUserProfileServerError(error, form.setError, ((key, param) =>
|
setUserProfileServerError(error, form.setError, ((key, param) =>
|
||||||
t(key as string, param as any)) as TFunction);
|
t(key as string, param as any)) as TFunction);
|
||||||
|
addError("userNotSaved", error);
|
||||||
} else {
|
} else {
|
||||||
addError("userCreateError", error);
|
addError("userCreateError", error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue