Code Review
/
portal
/
ric-dashboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Modify FE method to accept response code 204
[portal/ric-dashboard.git]
/
webapp-frontend
/
src
/
app
/
app-control
/
app-control.component.ts
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
6ef4b16
..
057b976
100644
(file)
--- 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<Object>) => {
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();
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
},
( (her: HttpErrorResponse) => {
// the error field should have an ErrorTransport object