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

New fields

parent b65625d0
No related branches found
No related tags found
1 merge request!983Draft: feat(dashboard) : create dashboard !
Pipeline #123936 passed
......@@ -35,4 +35,8 @@ export interface IOrientation {
};
status: 'pending' | 'acknowledged' | 'completed' | 'uncompleted' | 'expired';
action: 'defineRdv' | 'rdvTaken' | 'visit' | 'rdvDone';
modifiedBy?: string;
appointmentDate?: string;
processingComment?: string;
closingComment?: string;
}
......@@ -12,13 +12,10 @@
*ngFor="let orientation of orientations"
class="row"
routerLink="/profil/details-orientation/{{ orientation._id }}"
[ngClass]="
this.orientationService.daysAgo(orientation.createdAt) <= 14
? orientation.status === 'pending'
? 'new'
: ''
: 'urgent'
"
[ngClass]="{
new: this.orientationService.daysAgo(orientation.createdAt) <= 14 && orientation.status === 'pending',
urgent: this.orientationService.daysAgo(orientation.createdAt) > 14 && orientation.status === 'pending',
}"
[attr.aria-label]="
'Ouvrir l orientation de ' + orientation.personOriented.name + ' ' + orientation.personOriented.surname
"
......
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