From: KAPIL SINGAL Date: Tue, 30 Jun 2020 13:38:03 +0000 (+0000) Subject: Merge "added navbar in source-view component" X-Git-Tag: 1.0.0~90 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=fbbdf23b57c799362a368a98ae53290d5dc48909;p=ccsdk%2Fcds.git Merge "added navbar in source-view component" --- fbbdf23b57c799362a368a98ae53290d5dc48909 diff --cc cds-ui/designer-client/src/app/modules/feature-modules/packages/designer/source-view/source-view.component.ts index 033e80081,a092e0c0f..69401928f --- 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 @@@ -17,19 -17,28 +17,29 @@@ export class DesignerSourceViewComponen content = ''; lang = 'json'; - private controllerSideBar: boolean; - private ngUnsubscribe = new Subject(); + controllerSideBar: boolean; + ngUnsubscribe = new Subject(); viewedPackage: BluePrintDetailModel = new BluePrintDetailModel(); public customActionName = ''; + cl = 'editBar'; - constructor(private store: DesignerStore, - private packageCreationUtils: PackageCreationUtils, - private router: Router, - private route: ActivatedRoute, - private sourceViewService: SourceViewService) { + constructor( + private store: DesignerStore, + private packageCreationUtils: PackageCreationUtils, + private router: Router, + private route: ActivatedRoute, + private sourceViewService: SourceViewService) { this.controllerSideBar = true; } + private _toggleSidebar1() { + this.controllerSideBar = !this.controllerSideBar; + if (this.controllerSideBar === false) { + this.cl = 'editBar2'; + } + if (this.controllerSideBar === true) { + this.cl = 'editBar'; + } + } ngOnInit() { this.store.state$.subscribe(