From 80d44c9e3494bcd56669718dfb0c29725ce94d49 Mon Sep 17 00:00:00 2001 From: Etienne Loupias <eloupias@grandlyon.com> Date: Thu, 20 Mar 2025 11:07:09 +0100 Subject: [PATCH] message --- .../orientation-details/orientation-details.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 93e913d40..6a785c40b 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; }, -- GitLab