X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=webapp-frontend%2Fsrc%2Fapp%2Fapp-control%2Fapp-control.component.ts;fp=webapp-frontend%2Fsrc%2Fapp%2Fapp-control%2Fapp-control.component.ts;h=057b9761d4ebe538b8f7f1530d1f459cdf091d30;hb=02a955a2c99d6e6c58e72987a8b3f0a75e037342;hp=6ef4b1612054fc3acba212f1779345069c84c860;hpb=6b79976523018d41b3643b15deeb6706ad4daa6e;p=portal%2Fric-dashboard.git 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