Skip to content
Snippets Groups Projects
Commit 6ce71924 authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Do not set an action for an onlineM mediation

parent 80d44c9e
No related branches found
No related tags found
1 merge request!983Draft: feat(dashboard) : create dashboard !
Pipeline #124668 passed
......@@ -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"',
);
}
}
......
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