Fixing refresh button 97/5197/1
authormaximesson <maxime.bonneau@est.tech>
Mon, 30 Nov 2020 10:21:11 +0000 (11:21 +0100)
committermaximesson <maxime.bonneau@est.tech>
Mon, 30 Nov 2020 10:55:56 +0000 (11:55 +0100)
Issue-ID: NONRTRIC-346
Signed-off-by: maximesson <maxime.bonneau@est.tech>
Change-Id: Id7b09691f9ad56d0f2c8c91f8c14de1fac0d5371

webapp-frontend/package.json
webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.html
webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.ts
webapp-frontend/src/app/policy-control/policy-control.component.html
webapp-frontend/src/app/policy-control/policy-control.component.ts

index b7823a1..a88e1f2 100644 (file)
@@ -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",
     "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",
index ada0384..8c0be96 100644 (file)
@@ -21,7 +21,7 @@ limitations under the License.
 <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>
index 3360577..ed970fc 100644 (file)
@@ -139,7 +139,8 @@ export class EICoordinatorComponent implements OnInit {
         return '< No status >';
     }
 
-    refresh() {
-        location.reload();
+    refreshTables() {
+        this.eiJobsDataSource.loadTable();
+        this.eiProducersDataSource.loadTable();
     }
 }
index 0621b3b..27e56e3 100644 (file)
@@ -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>
index c287438..56c0ec3 100644 (file)
@@ -124,7 +124,7 @@ export class PolicyControlComponent implements OnInit {
         return this.getPolicyTypeInfo(policyType).isExpanded.asObservable();
     }
 
-    refresh() {
-        location.reload();
+    refreshTables() {
+        this.policyTypesDataSource.loadTable();
     }
 }