diff --git a/src/app/form/orientation-form-view/interfaces/orientation.interface.ts b/src/app/form/orientation-form-view/interfaces/orientation.interface.ts index 23048cfef3c472c272172ba5f9c71d48b57520dd..563361d413454a0f2fe1c27ced000a95caa20847 100644 --- a/src/app/form/orientation-form-view/interfaces/orientation.interface.ts +++ b/src/app/form/orientation-form-view/interfaces/orientation.interface.ts @@ -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; } diff --git a/src/app/profile/dashboard/orientations-table/orientations-table.component.html b/src/app/profile/dashboard/orientations-table/orientations-table.component.html index 9ffed71ca745aaecc1ae763f7cfa91eb41f2872c..ebeca7306046c67f660418a58785238b5f5bac07 100644 --- a/src/app/profile/dashboard/orientations-table/orientations-table.component.html +++ b/src/app/profile/dashboard/orientations-table/orientations-table.component.html @@ -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 "