diff --git a/src/app/profile/dashboard/orientation-details/orientation-details.component.ts b/src/app/profile/dashboard/orientation-details/orientation-details.component.ts index 93e913d40127fc89ff14222a4bfd294749e9be7f..6a785c40b0fdba7a175cae376d1db608f9fe39cf 100644 --- a/src/app/profile/dashboard/orientation-details/orientation-details.component.ts +++ b/src/app/profile/dashboard/orientation-details/orientation-details.component.ts @@ -119,10 +119,10 @@ export class OrientationDetailsComponent implements OnInit { this.isClosed = this.closedStatuses.includes(this.orientation.status); } - private patchOrientation(updatedFields): void { + private patchOrientation(updatedFields, message = "L'orientation a bien été mise à jour."): void { this.orientationService.patchOrientation(this.orientation._id, updatedFields).subscribe({ next: (orientation) => { - this.notificationService.showSuccess("L'orientation a bien été mise à jour."); + this.notificationService.showSuccess(message); // Display the updated values on the orientation details page this.orientation = orientation; },