From 6ce719241db6387cee8b2e76073c7c7a871efc8c Mon Sep 17 00:00:00 2001
From: Marlene Simondant <msimondant@grandlyon.com>
Date: Thu, 20 Mar 2025 14:27:11 +0100
Subject: [PATCH] Do not set an action for an onlineM mediation

---
 .../orientation-details/orientation-details.component.ts    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 6a785c40b..7c4edf1dc 100644
--- a/src/app/profile/dashboard/orientation-details/orientation-details.component.ts
+++ b/src/app/profile/dashboard/orientation-details/orientation-details.component.ts
@@ -99,7 +99,11 @@ export class OrientationDetailsComponent implements OnInit {
 
   public acknowledgeNewOrientation(): void {
     if (this.orientation.status === 'new' && this.from === 'todoOrientations') {
-      this.patchOrientation({ status: 'waiting', action: 'defineAppointment' });
+      const action = this.orientation.accompanimentType === 'onlineMediation' ? null : 'defineAppointment';
+      this.patchOrientation(
+        { status: 'waiting', action: action },
+        'Le statut de cette Orientation est passé de "Nouveau" à "En attente"',
+      );
     }
   }
 
-- 
GitLab