Merge "fix custom keys issues"
[ccsdk/cds.git] / cds-ui / designer-client / src / app / modules / feature-modules / packages / designer / designer.component.ts
index 9b8781d..e2a8d64 100644 (file)
@@ -55,6 +55,7 @@ export class DesignerComponent implements OnInit, OnDestroy {
   viewedPackage: BluePrintDetailModel = new BluePrintDetailModel();
   customActionName: string;
   showAction: boolean;
+  cl = 'editBar';
 
   boardGraph: joint.dia.Graph;
   boardPaper: joint.dia.Paper;
@@ -73,11 +74,17 @@ export class DesignerComponent implements OnInit, OnDestroy {
     this.controllerSideBar = true;
     this.attributesSideBar = false;
     this.showAction = false;
-    this.functionAttributeSidebar = true;
+    this.functionAttributeSidebar = false;
 
   }
   private _toggleSidebar1() {
     this.controllerSideBar = !this.controllerSideBar;
+    if (this.controllerSideBar === false) {
+      this.cl = 'editBar2';
+   }
+    if (this.controllerSideBar === true) {
+    this.cl = 'editBar';
+   }
   }
   private _toggleSidebar2() {
     this.attributesSideBar = !this.attributesSideBar;
@@ -198,8 +205,8 @@ export class DesignerComponent implements OnInit, OnDestroy {
       this.boardPaper = new joint.dia.Paper({
           el: $('#board-paper'),
           model: this.boardGraph,
-          height: 720,
-          width: 1100,
+          // height: 720,
+          // width: 1100,
           gridSize: 10,
           drawGrid: true,
           // background: {