Modify FE method to accept response code 204 64/764/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Wed, 21 Aug 2019 18:31:56 +0000 (14:31 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Wed, 21 Aug 2019 18:31:56 +0000 (14:31 -0400)
Change-Id: Ie93005d683df15a3c345c541de93533accd2ccb5
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
docs/release-notes.rst
webapp-frontend/src/app/app-control/app-control.component.ts

index 1eb16cb..97e59ec 100644 (file)
@@ -23,7 +23,7 @@ Version 1.2.1, ? Aug 2019
 -------------------------
 * Add EPSDK-FW user management and Portal security
 
-Version 1.2.0, 20 Aug 2019
+Version 1.2.0, 21 Aug 2019
 --------------------------
 * Split URL properties into prefix/suffix parts
 * Add jacoco plugin to back-end for code coverage
@@ -42,7 +42,7 @@ Version 1.2.0, 20 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
 
 Version 1.0.5, 5 July 2019
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