Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit cf8508f

Browse files
ilayaperumalgoodamien
authored andcommitted
Error handling during app unregistration
- Add error event subscription and display error message from the error handler Resolves #658
1 parent c31eb3c commit cf8508f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ui/src/app/apps/apps-unregister/apps-unregister.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {BsModalRef} from 'ngx-bootstrap';
33
import {AppRegistration} from '../../shared/model/app-registration.model';
44
import {AppsService} from '../apps.service';
55
import {ToastyService} from 'ng2-toasty';
6+
import 'rxjs/add/observable/throw';
67

78
/**
89
* Applications Unregister modal
@@ -66,8 +67,10 @@ export class AppsUnregisterComponent {
6667
}
6768
this.event.emit(data);
6869
this.close();
69-
}
70-
);
70+
}, error => {
71+
this.toastyService.error(error);
72+
this.close();
73+
});
7174
}
7275

7376
/**

0 commit comments

Comments
 (0)