From c05471af70b63f26a9e7a722347ad4534f537f43 Mon Sep 17 00:00:00 2001 From: maximesson Date: Mon, 30 Nov 2020 11:21:11 +0100 Subject: [PATCH] Fixing refresh button Issue-ID: NONRTRIC-346 Signed-off-by: maximesson Change-Id: Id7b09691f9ad56d0f2c8c91f8c14de1fac0d5371 --- webapp-frontend/package.json | 6 +++--- .../src/app/ei-coordinator/ei-coordinator.component.html | 2 +- webapp-frontend/src/app/ei-coordinator/ei-coordinator.component.ts | 5 +++-- .../src/app/policy-control/policy-control.component.html | 2 +- webapp-frontend/src/app/policy-control/policy-control.component.ts | 4 ++-- 5 files changed, 10 insertions(+), 9 deletions(-) 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 @@ limitations under the License.
Enrichment Information Coordinator
-
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 @@ export class EICoordinatorComponent implements OnInit { 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 @@
Policy Control
-
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 @@ export class PolicyControlComponent implements OnInit { return this.getPolicyTypeInfo(policyType).isExpanded.asObservable(); } - refresh() { - location.reload(); + refreshTables() { + this.policyTypesDataSource.loadTable(); } } -- 2.16.6