Skip to content

Commit dcf1971

Browse files
fix[frontend](integrations): added success notification on tenant success creation/edition
1 parent 754d128 commit dcf1971

8 files changed

Lines changed: 26 additions & 7 deletions

File tree

frontend/src/features/integrations/components/setup/cloud/CloudTenantForm.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ export function CloudTenantForm({
6464
setName('')
6565
setConfig(emptyConfig(fields))
6666
onSaved()
67+
toast.success(
68+
isEditing
69+
? t('integrations.setup.cloud.tenants.updateSuccess')
70+
: t('integrations.setup.cloud.tenants.createSuccess'),
71+
)
6772
},
6873
onError: (err) => {
6974
const fallback = isEditing

frontend/src/shared/i18n/locales/de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,9 @@
28522852
"fileLoaded": "Datei geladen",
28532853
"invalidJson": "Die Datei konnte nicht als JSON gelesen werden.",
28542854
"createError": "Der Mandant konnte nicht erstellt werden. Bitte erneut versuchen.",
2855-
"updateError": "Der Mandant konnte nicht aktualisiert werden. Bitte erneut versuchen."
2855+
"updateError": "Der Mandant konnte nicht aktualisiert werden. Bitte erneut versuchen.",
2856+
"createSuccess": "Mandant erfolgreich erstellt.",
2857+
"updateSuccess": "Mandant erfolgreich aktualisiert."
28562858
},
28572859
"google": {
28582860
"sections": {

frontend/src/shared/i18n/locales/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,9 @@
28522852
"fileLoaded": "File loaded",
28532853
"invalidJson": "Could not parse the file as JSON.",
28542854
"createError": "Could not create the tenant. Please try again.",
2855-
"updateError": "Could not update the tenant. Please try again."
2855+
"updateError": "Could not update the tenant. Please try again.",
2856+
"createSuccess": "Tenant created successfully.",
2857+
"updateSuccess": "Tenant updated successfully."
28562858
},
28572859
"google": {
28582860
"intro": {

frontend/src/shared/i18n/locales/es.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,9 @@
28522852
"fileLoaded": "Archivo cargado",
28532853
"invalidJson": "No se pudo procesar el archivo como JSON.",
28542854
"createError": "No se pudo crear el tenant. Inténtalo de nuevo.",
2855-
"updateError": "No se pudo actualizar el tenant. Inténtalo de nuevo."
2855+
"updateError": "No se pudo actualizar el tenant. Inténtalo de nuevo.",
2856+
"createSuccess": "Tenant creado correctamente.",
2857+
"updateSuccess": "Tenant actualizado correctamente."
28562858
},
28572859
"google": {
28582860
"sections": {

frontend/src/shared/i18n/locales/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,9 @@
28522852
"fileLoaded": "Fichier chargé",
28532853
"invalidJson": "Impossible de lire le fichier comme JSON.",
28542854
"createError": "Impossible de créer le tenant. Veuillez réessayer.",
2855-
"updateError": "Impossible de mettre à jour le tenant. Veuillez réessayer."
2855+
"updateError": "Impossible de mettre à jour le tenant. Veuillez réessayer.",
2856+
"createSuccess": "Tenant créé avec succès.",
2857+
"updateSuccess": "Tenant mis à jour avec succès."
28562858
},
28572859
"google": {
28582860
"sections": {

frontend/src/shared/i18n/locales/it.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,9 @@
28522852
"fileLoaded": "File caricato",
28532853
"invalidJson": "Impossibile interpretare il file come JSON.",
28542854
"createError": "Impossibile creare il tenant. Riprova.",
2855-
"updateError": "Impossibile aggiornare il tenant. Riprova."
2855+
"updateError": "Impossibile aggiornare il tenant. Riprova.",
2856+
"createSuccess": "Tenant creato con successo.",
2857+
"updateSuccess": "Tenant aggiornato con successo."
28562858
},
28572859
"google": {
28582860
"sections": {

frontend/src/shared/i18n/locales/pt.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,9 @@
28522852
"fileLoaded": "Arquivo carregado",
28532853
"invalidJson": "Não foi possível ler o arquivo como JSON.",
28542854
"createError": "Não foi possível criar o tenant. Tente novamente.",
2855-
"updateError": "Não foi possível atualizar o tenant. Tente novamente."
2855+
"updateError": "Não foi possível atualizar o tenant. Tente novamente.",
2856+
"createSuccess": "Tenant criado com sucesso.",
2857+
"updateSuccess": "Tenant atualizado com sucesso."
28562858
},
28572859
"google": {
28582860
"sections": {

frontend/src/shared/i18n/locales/ru.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2752,7 +2752,9 @@
27522752
"fileLoaded": "Файл загружен",
27532753
"invalidJson": "Не удалось прочитать файл как JSON.",
27542754
"createError": "Не удалось создать тенант. Повторите попытку.",
2755-
"updateError": "Не удалось обновить тенант. Повторите попытку."
2755+
"updateError": "Не удалось обновить тенант. Повторите попытку.",
2756+
"createSuccess": "Тенант успешно создан.",
2757+
"updateSuccess": "Тенант успешно обновлён."
27562758
},
27572759
"google": {
27582760
"sections": {

0 commit comments

Comments
 (0)