Skip to content

Commit

Permalink
Merge pull request #243 from wyeworks/fix/configurar-grupo-after-pre-…
Browse files Browse the repository at this point in the history
…demo-comments

fix(ConfigurarGrupo): arreglos after pre demo
  • Loading branch information
Cocofredo authored Nov 7, 2023
2 parents eae8112 + dbaadeb commit 8664563
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions client/src/app/(protected)/users/me/DeleteUserSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
);
}
4 changes: 3 additions & 1 deletion client/src/components/common/GeneralDeleteSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export function GeneralDeleteSection({
deleteExplanation,
confirmDialogDescription,
confirmDialogTitle,
confirmButtonText,
onDelete,
onSuccessfulDelete,
onSuccessfulDeleteMessage,
Expand All @@ -21,6 +22,7 @@ export function GeneralDeleteSection({
deleteExplanation: string;
confirmDialogDescription: string;
confirmDialogTitle: string;
confirmButtonText: string;
onDelete: () => Promise<void>;
onSuccessfulDelete: () => void;
onSuccessfulDeleteMessage: string;
Expand Down Expand Up @@ -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'}
Expand Down
1 change: 0 additions & 1 deletion client/src/locales/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 8664563

Please sign in to comment.