From bd6dd6a04edf441a819f6f5bdff3aa03b4298d9a Mon Sep 17 00:00:00 2001
From: anika-ahluwalia <anika.ahluwalia@gmail.com>
Date: Fri, 26 Jun 2020 15:22:31 -0500
Subject: editable text in header

---
 src/client/views/collections/CollectionSchemaView.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/client/views/collections/CollectionSchemaView.tsx')

diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx
index 900949b94..a9c599e0e 100644
--- a/src/client/views/collections/CollectionSchemaView.tsx
+++ b/src/client/views/collections/CollectionSchemaView.tsx
@@ -60,7 +60,6 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
     @computed get borderWidth() { return Number(COLLECTION_BORDER_WIDTH); }
 
     @observable _menuWidth = 0;
-    @observable _menuContent: any = "";
     @observable _headerOpen = false;
     @observable _isOpen = false;
     @observable _node: HTMLDivElement | null = null;
@@ -288,8 +287,7 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
     }
 
     @action
-    openHeader = (col: any, menu: any, screenx: number, screeny: number) => {
-        this._menuContent = menu;
+    openHeader = (col: any, screenx: number, screeny: number) => {
         this._col = col;
         this._headerOpen = !this._headerOpen;
         this._pointerX = screenx;
@@ -363,8 +361,8 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
     onWheel(e: React.WheelEvent) {
         const scale = this.props.ScreenToLocalTransform().Scale;
         this.props.active(true) && e.stopPropagation();
-        this.menuCoordinates[0] -= e.screenX / scale;
-        this.menuCoordinates[1] -= e.screenY / scale;
+        //this.menuCoordinates[0] -= e.screenX / scale;
+        //this.menuCoordinates[1] -= e.screenY / scale;
     }
 
     @computed get renderMenu() {
@@ -505,6 +503,8 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
             onResizedChange={this.onResizedChange}
             setColumns={this.setColumns}
             reorderColumns={this.reorderColumns}
+            changeColumns={this.changeColumns}
+            setHeaderIsEditing={this.setHeaderIsEditing}
         />;
     }
 
-- 
cgit v1.2.3-70-g09d2

