Fixing refresh button

Issue-ID: NONRTRIC-346
Signed-off-by: maximesson <maxime.bonneau@est.tech>
Change-Id: Id7b09691f9ad56d0f2c8c91f8c14de1fac0d5371
diff --git a/webapp-frontend/package.json b/webapp-frontend/package.json
index b7823a1..a88e1f2 100644
--- a/webapp-frontend/package.json
+++ b/webapp-frontend/package.json
@@ -14,8 +14,6 @@
     "@angular/animations": "^8.2.14",
     "@angular/cdk": "^7.3.7",
     "@angular/common": "^8.2.14",
-    "@angular/compiler": "^8.2.14",
-    "@angular/core": "^8.2.14",
     "@angular/flex-layout": "^7.0.0-beta.24",
     "@angular/forms": "^8.2.14",
     "@angular/material": "~7.2.0",
@@ -45,9 +43,11 @@
     "zone.js": "~0.9.1"
   },
   "devDependencies": {
-    "@angular-devkit/build-angular": "^0.803.23",
+    "@angular-devkit/build-angular": "^0.803.29",
     "@angular/cli": "^8.3.23",
+    "@angular/compiler": "^8.2.14",
     "@angular/compiler-cli": "^8.2.14",
+    "@angular/core": "^8.2.14",
     "@angular/language-service": "^8.2.14",
     "@nguniversal/express-engine": "^8.2.6",
     "@types/jasmine": "^2.8.16",
diff --git a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.html b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.html
index ada0384..8c0be96 100644
--- a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.html
+++ b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.html
@@ -21,7 +21,7 @@
 <div fxLayout="row">
     <div class="rd-global-page-title">Enrichment Information Coordinator</div>
     <div class="refresh-button">
-        <button mat-icon-button color="primary" aria-label="Button with a refresh icon" (click)="refresh()">
+        <button mat-icon-button color="primary" aria-label="Button with a refresh icon" (click)="refreshTables()">
             <mat-icon>refresh</mat-icon>
         </button>
     </div>
diff --git a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.ts b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.ts
index 3360577..ed970fc 100644
--- a/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.ts
+++ b/webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.ts
@@ -139,7 +139,8 @@
         return '< No status >';
     }
 
-    refresh() {
-        location.reload();
+    refreshTables() {
+        this.eiJobsDataSource.loadTable();
+        this.eiProducersDataSource.loadTable();
     }
 }
diff --git a/webapp-frontend/src/app/policy-control/policy-control.component.html b/webapp-frontend/src/app/policy-control/policy-control.component.html
index 0621b3b..27e56e3 100644
--- a/webapp-frontend/src/app/policy-control/policy-control.component.html
+++ b/webapp-frontend/src/app/policy-control/policy-control.component.html
@@ -21,7 +21,7 @@
 <div fxLayout="row">
     <div class="rd-global-page-title">Policy Control</div>
     <div class="refresh-button">
-        <button mat-icon-button color="primary" aria-label="Button with a refresh icon" (click)="refresh()">
+        <button mat-icon-button color="primary" aria-label="Button with a refresh icon" (click)="refreshTables()">
             <mat-icon>refresh</mat-icon>
         </button>
     </div>
diff --git a/webapp-frontend/src/app/policy-control/policy-control.component.ts b/webapp-frontend/src/app/policy-control/policy-control.component.ts
index c287438..56c0ec3 100644
--- a/webapp-frontend/src/app/policy-control/policy-control.component.ts
+++ b/webapp-frontend/src/app/policy-control/policy-control.component.ts
@@ -124,7 +124,7 @@
         return this.getPolicyTypeInfo(policyType).isExpanded.asObservable();
     }
 
-    refresh() {
-        location.reload();
+    refreshTables() {
+        this.policyTypesDataSource.loadTable();
     }
 }