diff options
author | 2020-11-18 10:51:58 +0200 | |
---|---|---|
committer | 2020-11-18 13:23:46 +0000 | |
commit | a661be230e19c64310de293ca6a2e47ab469db9a (patch) | |
tree | 7930e9529e33fea6bc4f3ddbfe633edf1186cd94 /cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard | |
parent | 67ae82d8f6f66e1e01a3e28dfa8e17d1168c27aa (diff) |
Stop loader and disaply errors when deploying a package
Issue-ID: CCSDK-2323
Signed-off-by: Ahmedeldeeb50 <ahmed.eldeeb.ext@orange.com>
Change-Id: Id8cafa540da9d165992463c74c523085cc26125d
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts index 766c50a98..96e54d953 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/configuration-dashboard/configuration-dashboard.component.ts @@ -264,6 +264,10 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl this.packageCreationExtractionService.extractBlobToStore(this.currentBlob); this.isSaveEnabled = true; this.toastService.info('enriched successfully '); + }, err => { + this.handleError(err); + }, () => { + this.ngxService.stop(); }); }, error => { this.toastService.error('error happened when enrich ' + error.message); @@ -282,6 +286,10 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl const id = response.toString().split('id')[1].split(':')[1].split('"')[1]; this.isSaveEnabled = false; this.router.navigate(['/packages/package/' + id]); + }, err => { + this.handleError(err); + }, () => { + this.ngxService.stop(); }); }, error => { this.handleError(error); @@ -324,6 +332,8 @@ export class ConfigurationDashboardComponent extends ComponentCanDeactivate impl } this.toastService.error('error happened when deploying ' + errorMessage); console.log('Error -' + errorMessage); + this.ngxService.stop(); + this.toastService.error('error happened when deploying' + error.message); return throwError(errorMessage); } } |