From 5c1a716ff527f8a6fa7649998fcbb68a48671a2c Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Thu, 24 Oct 2019 10:34:18 +0200
Subject: [PATCH] FEAT #12070 TIME 0:05 add categories back

---
 src/frontend/app/indexation/indexation.component.ts | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/frontend/app/indexation/indexation.component.ts b/src/frontend/app/indexation/indexation.component.ts
index 4e7c3896205..79960770110 100644
--- a/src/frontend/app/indexation/indexation.component.ts
+++ b/src/frontend/app/indexation/indexation.component.ts
@@ -121,16 +121,12 @@ export class IndexationComponent implements OnInit {
                             component: action.component,
                             enabled: action.enabled,
                             default: index === 0 ? true : false,
-                            categoryUse: action.categoryUse
+                            categoryUse: action.categories
                         }
                     });
                     return data;
                 }),
-                tap((data: any) => {
-                    // TO DO : REMOVE AFTER BACK
-                    data.actions[0].categoryUse = ['incoming','outgoing'];
-                    data.actions[1].categoryUse = ['outgoing'];
-                    
+                tap((data: any) => {                    
                     this.selectedAction = data.actions[0];
                     this.actionsList = data.actions;
                 }),
-- 
GitLab