diff options
| author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-07-11 18:45:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-11 18:45:57 -0400 |
| commit | aa17690d3c484e08b35cc6356c73f00eaa5e0df5 (patch) | |
| tree | 6039850b3ff1f463d8ac97ab0fe5a71deb2d6e82 /src/client/views/nodes/LinkMenuGroup.tsx | |
| parent | aeb0521e8ad8f1efc8c3a39af9eb5443c5368453 (diff) | |
| parent | 5eb76c1a2da4e7c8371cb62c39ca84d2f79804d3 (diff) | |
Merge pull request #198 from browngraphicslab/layout_refactor
Layout refactor
Diffstat (limited to 'src/client/views/nodes/LinkMenuGroup.tsx')
| -rw-r--r-- | src/client/views/nodes/LinkMenuGroup.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/LinkMenuGroup.tsx b/src/client/views/nodes/LinkMenuGroup.tsx index 97f2e13ae..767f2250b 100644 --- a/src/client/views/nodes/LinkMenuGroup.tsx +++ b/src/client/views/nodes/LinkMenuGroup.tsx @@ -53,7 +53,7 @@ export class LinkMenuGroup extends React.Component<LinkMenuGroupProps> { draggedDocs.push(opp); } } - ) + ); let dragData = new DragManager.DocumentDragData(draggedDocs, draggedDocs.map(d => undefined)); DragManager.StartLinkedDocumentDrag([this._drag.current], this.props.sourceDoc, dragData, e.x, e.y, { @@ -72,7 +72,7 @@ export class LinkMenuGroup extends React.Component<LinkMenuGroupProps> { if (index > -1) keys.splice(index, 1); let cols = ["anchor1", "anchor2", ...[...keys]]; let docs: Doc[] = LinkManager.Instance.getAllMetadataDocsInGroup(groupType); - let createTable = action(() => Docs.SchemaDocument(cols, docs, { width: 500, height: 300, title: groupType + " table" })); + let createTable = action(() => Docs.Create.SchemaDocument(cols, docs, { width: 500, height: 300, title: groupType + " table" })); let ref = React.createRef<HTMLDivElement>(); return <div ref={ref}><button className="linkEditor-button linkEditor-tableButton" onPointerDown={SetupDrag(ref, createTable)} title="Drag to view relationship table"><FontAwesomeIcon icon="table" size="sm" /></button></div>; } |
