From ab14e2547e78671a320f45683bf03f20df8e2628 Mon Sep 17 00:00:00 2001
From: Marlene Simondant <msimondant@grandlyon.com>
Date: Wed, 19 Mar 2025 16:54:10 +0100
Subject: [PATCH] Suivi d'orientation : no urgent or new

---
 .../orientations-table/orientations-table.component.html     | 2 +-
 .../orientations-table/orientations-table.component.ts       | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

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 f1c6a7ee6..06303da6a 100644
--- a/src/app/profile/dashboard/orientations-table/orientations-table.component.html
+++ b/src/app/profile/dashboard/orientations-table/orientations-table.component.html
@@ -14,7 +14,7 @@
     class="row"
     tabindex="0"
     [ngClass]="{
-      new: !isUrgent(orientation) && orientation.status === 'new',
+      new: isNew(orientation),
       urgent: isUrgent(orientation),
     }"
     [attr.aria-label]="
diff --git a/src/app/profile/dashboard/orientations-table/orientations-table.component.ts b/src/app/profile/dashboard/orientations-table/orientations-table.component.ts
index b1fd7ac82..969d3b62a 100644
--- a/src/app/profile/dashboard/orientations-table/orientations-table.component.ts
+++ b/src/app/profile/dashboard/orientations-table/orientations-table.component.ts
@@ -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 } });
-- 
GitLab