Merge "added navbar in source-view component"
[ccsdk/cds.git] / cds-ui / designer-client / src / app / modules / feature-modules / packages / designer / source-view / source-view.component.ts
index 033e800..6940192 100644 (file)
@@ -21,6 +21,7 @@ export class DesignerSourceViewComponent implements OnInit, OnDestroy {
     ngUnsubscribe = new Subject();
     viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
     public customActionName = '';
+    cl = 'editBar';
 
     constructor(
         private store: DesignerStore,
@@ -30,6 +31,15 @@ export class DesignerSourceViewComponent implements OnInit, OnDestroy {
         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(