rm success string from ignored

This commit is contained in:
mfrances 2021-03-10 11:06:53 -05:00
parent e1678d6113
commit 39cc1b998c

View file

@ -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
);
}