Skip to content
Snippets Groups Projects
Commit 80d44c9e authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

message

parent 2d723820
No related branches found
No related tags found
1 merge request!983feat(dashboard) : create dashboard !
Pipeline #124655 passed
......@@ -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;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment