rm success string from ignored
This commit is contained in:
parent
e1678d6113
commit
39cc1b998c
1 changed files with 4 additions and 10 deletions
|
@ -68,14 +68,11 @@ const LdapSettingsHeader = ({
|
||||||
action: "triggerChangedUsersSync",
|
action: "triggerChangedUsersSync",
|
||||||
});
|
});
|
||||||
if (response.ignored) {
|
if (response.ignored) {
|
||||||
addAlert(
|
addAlert(`${response.status}.`, AlertVariant.warning);
|
||||||
t("syncUsersSuccess") + ` ${response.status}.`,
|
|
||||||
AlertVariant.success
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
addAlert(
|
addAlert(
|
||||||
t("syncUsersSuccess") +
|
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
|
AlertVariant.success
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -93,14 +90,11 @@ const LdapSettingsHeader = ({
|
||||||
action: "triggerFullSync",
|
action: "triggerFullSync",
|
||||||
});
|
});
|
||||||
if (response.ignored) {
|
if (response.ignored) {
|
||||||
addAlert(
|
addAlert(`${response.status}.`, AlertVariant.warning);
|
||||||
t("syncUsersSuccess") + ` ${response.status}.`,
|
|
||||||
AlertVariant.success
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
addAlert(
|
addAlert(
|
||||||
t("syncUsersSuccess") +
|
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
|
AlertVariant.success
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue