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
Add error handling to improve user experience
[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
f87b9b5
..
b172152
100644
(file)
--- a/
webapp-frontend/src/app/app-control/app-control.component.ts
+++ b/
webapp-frontend/src/app/app-control/app-control.component.ts
@@
-31,7
+31,7
@@
import { AppControlDataSource } from './app-control.datasource';
@Component({
selector: 'rd-app-control',
templateUrl: './app-control.component.html',
@Component({
selector: 'rd-app-control',
templateUrl: './app-control.component.html',
- styleUrls: ['./app-control.component.css'],
+ styleUrls: ['./app-control.component.
s
css'],
animations: [AppControlAnimations.messageTrigger]
})
export class AppControlComponent implements OnInit {
animations: [AppControlAnimations.messageTrigger]
})
export class AppControlComponent implements OnInit {
@@
-45,10
+45,10
@@
export class AppControlComponent implements OnInit {
private router: Router,
private confirmDialogService: ConfirmDialogService,
private errorDialogService: ErrorDialogService,
private router: Router,
private confirmDialogService: ConfirmDialogService,
private errorDialogService: ErrorDialogService,
- private notification: NotificationService) { }
+ private notification
Service
: NotificationService) { }
ngOnInit() {
ngOnInit() {
- this.dataSource = new AppControlDataSource(this.appMgrSvc, this.sort);
+ this.dataSource = new AppControlDataSource(this.appMgrSvc, this.sort
, this.notificationService
);
this.dataSource.loadTable();
}
this.dataSource.loadTable();
}
@@
-76,10
+76,10
@@
export class AppControlComponent implements OnInit {
this.dataSource.loadTable();
switch (response.status) {
case 200:
this.dataSource.loadTable();
switch (response.status) {
case 200:
- this.notification.success('xApp undeployed successfully!');
+ this.notification
Service
.success('xApp undeployed successfully!');
break;
default:
break;
default:
- this.notification.warn('xApp undeploy failed.');
+ this.notification
Service
.warn('xApp undeploy failed.');
}
}
);
}
}
);