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

From email

parent 211a6a9d
No related branches found
No related tags found
2 merge requests!993Notif,!983feat(dashboard) : create dashboard !
......@@ -65,6 +65,13 @@ export class OrientationDetailsComponent implements OnInit {
});
}
// If coming from the email (with a URL like /details-orientation/[orientationID]#to)
const hash = this.router.parseUrl(this.router.url).fragment;
if (hash === 'to') {
this.from = 'todoOrientations';
}
// Normal case (comming fron dashboard)
this.route.params.subscribe((urlParams) => {
const orientationId = urlParams.id || '';
if (orientationId && !this.token) {
......@@ -133,7 +140,7 @@ export class OrientationDetailsComponent implements OnInit {
const target = event.target as HTMLInputElement;
const date = new Date(target.value);
if (!isNaN(date.getTime())) {
this.patchOrientation({ appointmentDate: date });
this.patchOrientation({ appointmentDate: date }, 'La date de RDV a bien été mise à jour.');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment