From 1281cbf0c03437ccbff909a60b509d7b25e7ac10 Mon Sep 17 00:00:00 2001 From: agagancarczyk <4890675+agagancarczyk@users.noreply.github.com> Date: Wed, 31 Jan 2024 12:22:13 +0000 Subject: [PATCH] Added error message if user attribute save fails (#26592) * added error message Signed-off-by: Agnieszka Gancarczyk * feedback Signed-off-by: Agnieszka Gancarczyk --------- Signed-off-by: Agnieszka Gancarczyk Co-authored-by: Agnieszka Gancarczyk --- .../theme/keycloak.v2/admin/messages/messages_en.properties | 3 ++- js/apps/admin-ui/src/user/EditUser.tsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties b/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties index 9fffaa21eb..eeb38b62f7 100644 --- a/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties +++ b/js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties @@ -3043,4 +3043,5 @@ enableClientSignatureRequiredModal=Enable client signature required selectBindType=Select bind type searchClientAuthorizationResource=Search resource searchClientAuthorizationPolicy=Search policy -searchClientAuthorizationPermission=Search permission \ No newline at end of file +searchClientAuthorizationPermission=Search permission +userNotSaved=The user has not been saved\: {{error}} \ No newline at end of file diff --git a/js/apps/admin-ui/src/user/EditUser.tsx b/js/apps/admin-ui/src/user/EditUser.tsx index 0ba317469c..d4627ae910 100644 --- a/js/apps/admin-ui/src/user/EditUser.tsx +++ b/js/apps/admin-ui/src/user/EditUser.tsx @@ -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); }