diff options
| author | andrewdkim <adkim414@gmail.com> | 2019-07-26 17:37:12 -0400 | 
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2019-07-26 17:37:12 -0400 | 
| commit | 2dfd6378cf3f472132143bc231090777e49eeec7 (patch) | |
| tree | 34e631e0551391e5786ae136ba1d596dbc876c76 /src/client/views/nodes/DocumentContentsView.tsx | |
| parent | 7cb850105aeefd1234f76aaab5badd45a8660dc4 (diff) | |
| parent | e189378e5ce01eedd1373172fbd8d8dabf2ad197 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into animationtimeline
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
| -rw-r--r-- | src/client/views/nodes/DocumentContentsView.tsx | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index ed6b224a7..91d4fb524 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -11,6 +11,7 @@ import { DocumentViewProps } from "./DocumentView";  import "./DocumentView.scss";  import { FormattedTextBox } from "./FormattedTextBox";  import { ImageBox } from "./ImageBox"; +import { ButtonBox } from "./ButtonBox";  import { IconBox } from "./IconBox";  import { KeyValueBox } from "./KeyValueBox";  import { PDFBox } from "./PDFBox"; @@ -64,7 +65,7 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & {      get dataDoc() {          if (this.props.DataDoc === undefined && this.props.Document.layout instanceof Doc) { -            // if there is no dataDoc (ie, we're not rendering a temlplate layout), but this document +            // if there is no dataDoc (ie, we're not rendering a template layout), but this document              // has a template layout document, then we will render the template layout but use               // this document as the data document for the layout.              return this.props.Document; @@ -97,7 +98,7 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & {          if (this.props.renderDepth > 7) return (null);          if (!this.layout && (this.props.layoutKey !== "overlayLayout" || !this.templates.length)) return (null);          return <ObserverJsxParser -            components={{ FormattedTextBox, ImageBox, IconBox, DirectoryImportBox, FieldView, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView, CollectionView, CollectionPDFView, CollectionVideoView, WebBox, KeyValueBox, PDFBox, VideoBox, AudioBox, HistogramBox }} +            components={{ FormattedTextBox, ImageBox, IconBox, DirectoryImportBox, ButtonBox, FieldView, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView, CollectionView, CollectionPDFView, CollectionVideoView, WebBox, KeyValueBox, PDFBox, VideoBox, AudioBox, HistogramBox }}              bindings={this.CreateBindings()}              jsx={this.finalLayout}              showWarnings={true}  | 
