From: Manoop Talasila Date: Wed, 21 Aug 2019 19:39:38 +0000 (+0000) Subject: Merge "Pass AC policy content to A1 without parsing" X-Git-Tag: R2~32 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=a07202e48e9ea0cf0527ffa1e3e195233134edcf;hp=86035ef1f9d5b699146ad5dcd127ed30f0898077;p=portal%2Fric-dashboard.git Merge "Pass AC policy content to A1 without parsing" --- diff --git a/docs/release-notes.rst b/docs/release-notes.rst index 7ae186c0..63229c0a 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -42,7 +42,7 @@ Version 1.2.0, 21 Aug 2019 * Synch A1 method paths in front-end and back-end * Add xapp dynamic configuration feature * Disable x-frame-options response header -* Repair app manager undeploy-app method +* Repair app manager undeploy-app back/front methods * Display AC xAPP metrics data via Kibana source (metrics.url.ac) on dashboard * Pass AC policy parameter without parsing as JSON diff --git a/webapp-frontend/src/app/app-control/app-control.component.ts b/webapp-frontend/src/app/app-control/app-control.component.ts index 6ef4b161..057b9761 100644 --- a/webapp-frontend/src/app/app-control/app-control.component.ts +++ b/webapp-frontend/src/app/app-control/app-control.component.ts @@ -75,14 +75,9 @@ export class AppControlComponent implements OnInit { if (res) { this.appMgrSvc.undeployXapp(app.xapp).subscribe( ( httpResponse: HttpResponse) => { + // Answers 204/No content on success + this.notificationService.success('App undeployed successfully!'); this.dataSource.loadTable(); - switch (httpResponse.status) { - case 200: - this.notificationService.success('App undeployed successfully!'); - break; - default: - this.notificationService.warn('App undeploy failed.'); - } }, ( (her: HttpErrorResponse) => { // the error field should have an ErrorTransport object