modal.result.then(res => {
if (res === 'yes') {
- // Request installation
- this.sdkSvr.install(sdk).subscribe(r => { }, err => this.alert.error(err));
-
const modalInstall = this.modalService.open(SdkInstallComponent, {
size: 'lg',
backdrop: 'static',
container: 'nb-layout',
});
modalInstall.componentInstance.sdk = sdk;
+
+ // Request installation
+ this.sdkSvr.install(sdk).subscribe(
+ r => { },
+ err => {
+ modalInstall.dismiss('SDK install failure');
+ this.alert.error(err);
+ });
}
});