Merge "added navbar in source-view component"
authorKAPIL SINGAL <ks220y@att.com>
Tue, 30 Jun 2020 13:38:03 +0000 (13:38 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 30 Jun 2020 13:38:03 +0000 (13:38 +0000)
1  2 
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(