diff options
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/src/app/pages/sdks/sdk-management/sdk-management.component.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/webapp/src/app/pages/sdks/sdk-management/sdk-management.component.ts b/webapp/src/app/pages/sdks/sdk-management/sdk-management.component.ts index 3bb107b..6e9b81b 100644 --- a/webapp/src/app/pages/sdks/sdk-management/sdk-management.component.ts +++ b/webapp/src/app/pages/sdks/sdk-management/sdk-management.component.ts @@ -141,15 +141,20 @@ export class SdkManagementComponent implements OnInit { 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); + }); } }); |