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

Suivi d'orientation : no urgent or new

parent 3366520f
Branches
Tags
2 merge requests!993Notif,!983feat(dashboard) : create dashboard !
......@@ -14,7 +14,7 @@
class="row"
tabindex="0"
[ngClass]="{
new: !isUrgent(orientation) && orientation.status === 'new',
new: isNew(orientation),
urgent: isUrgent(orientation),
}"
[attr.aria-label]="
......
......@@ -20,10 +20,15 @@ export class OrientationsTableComponent {
public isUrgent(orientation): boolean {
return (
this.orientationService.daysAgo(orientation.updatedAt) > 14 &&
this.from !== 'myOrientations' &&
(orientation.status === 'new' || orientation.status === 'waiting')
);
}
public isNew(orientation): boolean {
return !this.isUrgent(orientation) && orientation.status === 'new' && this.from !== 'myOrientations';
}
public navigateToDetails(event: Event, orientationId: string): void {
event.preventDefault();
this.router.navigate(['/profil/details-orientation', orientationId], { queryParams: { from: this.from } });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment