+ undeployApp(app: XappControlRow): void {
+ this.confirmDialogService.openConfirmDialog('Are you sure you want to undeploy xApp ' + app.xapp + '?')
+ .afterClosed().subscribe(res => {
+ if (res) {
+ this.xappMgrSvc.undeployXapp(app.xapp).subscribe(
+ response => {
+ this.dataSource.loadTable();
+ switch (response.status) {
+ case 200:
+ this.notification.success('xApp undeployed successfully!');
+ break;
+ default:
+ this.notification.warn('xApp undeploy failed.');
+ }
+ }
+ );
+ }
+ });
+ }