diff --git a/client/src/app/(protected)/groups/[id]/edit/DeleteGroupSection.tsx b/client/src/app/(protected)/groups/[id]/edit/DeleteGroupSection.tsx index f26c99ff..79d6f5ef 100644 --- a/client/src/app/(protected)/groups/[id]/edit/DeleteGroupSection.tsx +++ b/client/src/app/(protected)/groups/[id]/edit/DeleteGroupSection.tsx @@ -49,6 +49,7 @@ export default function DeleteGroupSection({ group }: { group: StudyGroup }) { }} onSuccessfulDeleteMessage={strings.configGroup.form.delete.alertSuccess} onFailedDeleteErrorMessage={strings.configGroup.form.delete.alertError} + confirmButtonText={strings.configGroup.form.delete.confirmButton} /> ); } diff --git a/client/src/app/(protected)/groups/[id]/edit/EditGroupPropsSection.tsx b/client/src/app/(protected)/groups/[id]/edit/EditGroupPropsSection.tsx index 051d80a4..25493cf8 100644 --- a/client/src/app/(protected)/groups/[id]/edit/EditGroupPropsSection.tsx +++ b/client/src/app/(protected)/groups/[id]/edit/EditGroupPropsSection.tsx @@ -168,7 +168,7 @@ export default function EditGroupPropsSection({ }; await GroupService.update(updatedGroup, session?.user.accessToken!); - setAlertMessage(strings.configGroup.form.edit.alertSuccess); + setAlertMessage(strings.common.success.changeSuccess); setAlertVisible(true); setAlertType('success'); setAlertTitle(strings.common.success.defaultSuccess); diff --git a/client/src/app/(protected)/users/me/DeleteUserSection.tsx b/client/src/app/(protected)/users/me/DeleteUserSection.tsx index 860e199d..1faf2e4a 100644 --- a/client/src/app/(protected)/users/me/DeleteUserSection.tsx +++ b/client/src/app/(protected)/users/me/DeleteUserSection.tsx @@ -26,6 +26,7 @@ export function DeleteUserSection({ user }: { user: User }) { } onSuccessfulDeleteMessage={'Perfil eliminado'} onFailedDeleteErrorMessage={'No se pudo eliminar el perfil'} + confirmButtonText={strings.form.deleteUser.confirmDialogConfirmButtonText} /> ); } diff --git a/client/src/components/common/GeneralDeleteSection.tsx b/client/src/components/common/GeneralDeleteSection.tsx index a0474845..9ff599a4 100644 --- a/client/src/components/common/GeneralDeleteSection.tsx +++ b/client/src/components/common/GeneralDeleteSection.tsx @@ -11,6 +11,7 @@ export function GeneralDeleteSection({ deleteExplanation, confirmDialogDescription, confirmDialogTitle, + confirmButtonText, onDelete, onSuccessfulDelete, onSuccessfulDeleteMessage, @@ -21,6 +22,7 @@ export function GeneralDeleteSection({ deleteExplanation: string; confirmDialogDescription: string; confirmDialogTitle: string; + confirmButtonText: string; onDelete: () => Promise; onSuccessfulDelete: () => void; onSuccessfulDeleteMessage: string; @@ -91,7 +93,7 @@ export function GeneralDeleteSection({ title={confirmDialogTitle} onCancel={handleCancel} onConfirm={handleConfirm} - confirmText={strings.form.deleteUser.confirmDialogConfirmButtonText} + confirmText={confirmButtonText} cancelText={strings.form.deleteUser.confirmDialogCancelButtonText} delayDuration={5} confirmColor={'blue'} diff --git a/client/src/locales/strings.json b/client/src/locales/strings.json index dddd314b..6b501b27 100644 --- a/client/src/locales/strings.json +++ b/client/src/locales/strings.json @@ -186,7 +186,6 @@ "edit": { "title": "InformaciĆ³n general", "confirmButton": "Guardar cambios", - "alertSuccess": "Grupo actualizado", "alertError": "No se pudo actualizar el grupo", "alertErrorLoadingSubjects": "No se pudieron cargar las materias", "fields": {