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/designer/source-view/source-view.component.ts | |
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/designer/source-view/source-view.component.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.component.ts | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.component.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.component.ts index 2c576f2b9..ae4d09d20 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.component.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.component.ts @@ -22,6 +22,7 @@ export class DesignerSourceViewComponent implements OnInit, OnDestroy { viewedPackage: BluePrintDetailModel = new BluePrintDetailModel(); public customActionName = ''; cl = 'editBar'; + packageId: string; constructor( private store: DesignerStore, @@ -31,15 +32,15 @@ export class DesignerSourceViewComponent implements OnInit, OnDestroy { private sourceViewService: SourceViewService) { this.controllerSideBar = true; } - _toggleSidebar1() { + _toggleSidebar1() { this.controllerSideBar = !this.controllerSideBar; if (this.controllerSideBar === false) { - this.cl = 'editBar2'; - } + this.cl = 'editBar2'; + } if (this.controllerSideBar === true) { - this.cl = 'editBar'; - } - } + this.cl = 'editBar'; + } + } ngOnInit() { this.store.state$.subscribe( @@ -55,13 +56,17 @@ export class DesignerSourceViewComponent implements OnInit, OnDestroy { this.viewedPackage = bluePrintDetailModels[0]; } }); + + this.route.paramMap.subscribe(res => { + this.packageId = res.get('id'); + }); } convertAndOpenInDesingerView(id) { // TODO validate json against scheme console.log('convertAndOpenInDesingerView ...', this.content); this.store.saveSourceContent(this.content); - this.router.navigate(['/packages/designer', id, { actionName: this.customActionName }]); + this.router.navigate(['/packages/designer', this.packageId, { actionName: this.customActionName }]); } ngOnDestroy() { |