diff options
| author | bob <bcz@cs.brown.edu> | 2019-11-08 15:14:56 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-11-08 15:14:56 -0500 |
| commit | 5c6dc8fb25c2ac65a9efa534ee86211ac6d68301 (patch) | |
| tree | 995d03c7d9c0c58c6f6749f751d8a45c53504363 /src/client/views/collections/CollectionTreeView.tsx | |
| parent | 2891b8f3547cb0a2d039099228e30a712457832f (diff) | |
moved schemaPreview into ContentFittingDOcumentView. fixed dragging link anchors
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index 89cc69ccf..8726726bb 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -24,7 +24,7 @@ import { MainView } from '../MainView'; import { KeyValueBox } from '../nodes/KeyValueBox'; import { Templates } from '../Templates'; import { CollectionViewType } from './CollectionView'; -import { CollectionSchemaPreview } from './CollectionSchemaView'; +import { ContentFittingDocumentView } from '../nodes/ContentFittingDocumentView'; import { CollectionSubView } from "./CollectionSubView"; import "./CollectionTreeView.scss"; import React = require("react"); @@ -314,7 +314,7 @@ class TreeView extends React.Component<TreeViewProps> { } else { let layoutDoc = Doc.Layout(this.props.document); return <div ref={this._dref} style={{ display: "inline-block", height: this.docHeight() }} key={this.props.document[Id] + this.props.document.title}> - <CollectionSchemaPreview + <ContentFittingDocumentView Document={layoutDoc} DataDocument={this.templateDataDoc} fieldKey={this.fieldKey} |
