- response => {
- switch (response.status) {
- case 200:
- this.notification.success('Deploy succeeded!');
- break;
- default:
- this.notification.warn('Deploy failed.');
- }
+ (response: HttpResponse<object>) => {
+ this.notification.success('Deploy succeeded!');
+ },
+ (error: HttpErrorResponse) => {
+ this.notification.warn('Deploy failed: ' + error.message);