prettier
This commit is contained in:
parent
bcffc68fdc
commit
64969fac0b
1 changed files with 11 additions and 11 deletions
|
@ -42,18 +42,18 @@ export const GroupsCreateModal = ({
|
||||||
|
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
if (await form.trigger()) {
|
if (await form.trigger()) {
|
||||||
try {
|
try {
|
||||||
httpClient.doPost(`/admin/realms/${realm}/groups`, {
|
httpClient.doPost(`/admin/realms/${realm}/groups`, {
|
||||||
name: createGroupName,
|
name: createGroupName,
|
||||||
});
|
});
|
||||||
setIsCreateModalOpen(false);
|
setIsCreateModalOpen(false);
|
||||||
setCreateGroupName("");
|
setCreateGroupName("");
|
||||||
add(t("groupCreated"), AlertVariant.success);
|
add(t("groupCreated"), AlertVariant.success);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
add(`${t("couldNotCreateGroup")} ': '${error}'`, AlertVariant.danger);
|
add(`${t("couldNotCreateGroup")} ': '${error}'`, AlertVariant.danger);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
|
Loading…
Reference in a new issue