From 39cc1b998c24492cc29b44fa852c3f1ecca4276a Mon Sep 17 00:00:00 2001 From: mfrances Date: Wed, 10 Mar 2021 11:06:53 -0500 Subject: [PATCH] rm success string from ignored --- src/user-federation/UserFederationLdapSettings.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/user-federation/UserFederationLdapSettings.tsx b/src/user-federation/UserFederationLdapSettings.tsx index 15421f9ca7..9ebb83a628 100644 --- a/src/user-federation/UserFederationLdapSettings.tsx +++ b/src/user-federation/UserFederationLdapSettings.tsx @@ -68,14 +68,11 @@ const LdapSettingsHeader = ({ action: "triggerChangedUsersSync", }); if (response.ignored) { - addAlert( - t("syncUsersSuccess") + ` ${response.status}.`, - AlertVariant.success - ); + addAlert(`${response.status}.`, AlertVariant.warning); } else { addAlert( t("syncUsersSuccess") + - ` ${response.added} users added, ${response.updated} users updated, ${response.removed} users removed, ${response.failed} users failed.`, + `${response.added} users added, ${response.updated} users updated, ${response.removed} users removed, ${response.failed} users failed.`, AlertVariant.success ); } @@ -93,14 +90,11 @@ const LdapSettingsHeader = ({ action: "triggerFullSync", }); if (response.ignored) { - addAlert( - t("syncUsersSuccess") + ` ${response.status}.`, - AlertVariant.success - ); + addAlert(`${response.status}.`, AlertVariant.warning); } else { addAlert( t("syncUsersSuccess") + - ` ${response.added} users added, ${response.updated} users updated, ${response.removed} users removed, ${response.failed} users failed.`, + `${response.added} users added, ${response.updated} users updated, ${response.removed} users removed, ${response.failed} users failed.`, AlertVariant.success ); }