Merge "Change typescript variables to snake_case"
authorManoop Talasila <mt2061@att.com>
Wed, 21 Aug 2019 23:05:06 +0000 (23:05 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Wed, 21 Aug 2019 23:05:06 +0000 (23:05 +0000)
docs/release-notes.rst
webapp-frontend/src/app/app-control/app-control.component.ts

index d4211c8..621a5e6 100644 (file)
@@ -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
 * Use snake_case (not camelCase) names in AC policy front end
index 6ef4b16..057b976 100644 (file)
@@ -75,14 +75,9 @@ export class AppControlComponent implements OnInit {
         if (res) {
           this.appMgrSvc.undeployXapp(app.xapp).subscribe(
             ( httpResponse: HttpResponse<Object>) => {
+              // 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