parent
8e2000283c
commit
556f474fa6
2 changed files with 4 additions and 2 deletions
|
@ -43,9 +43,9 @@ export const NewClientForm = () => {
|
|||
const save = async () => {
|
||||
try {
|
||||
await httpClient.doPost(`/admin/realms/${realm}/clients`, client);
|
||||
addAlert("Client created", AlertVariant.success);
|
||||
addAlert(t("createSuccess"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
addAlert(`Could not create client: '${error}'`, AlertVariant.danger);
|
||||
addAlert(t("createError", { error }), AlertVariant.danger);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"generalSettings": "General Settings",
|
||||
"capabilityConfig": "Capability config",
|
||||
"clientsExplain": "Clients are applications and services that can request authentication of a user",
|
||||
"createSuccess": "Client created successfully",
|
||||
"createError": "Could not create client: '{{error}}'",
|
||||
"clientImportError": "Could not import client",
|
||||
"clientSaveSuccess": "Client successfully updated",
|
||||
"clientSaveError": "Client could not be updated:",
|
||||
|
|
Loading…
Reference in a new issue