aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-02-18 02:46:35 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-02-18 02:46:35 -0500
commit842f571bfb4952d12804a8dbdc66aedbf2bf6b81 (patch)
tree7744b7432aa9e65604f18a6a4db9d10c32f30480 /src
parent8a293ac029c4ab9973067fe40c3aa9b2f118d27d (diff)
Added comment/question about document view
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DocumentView.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 5f6e8dad4..f368fdeaf 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -228,6 +228,11 @@ export class DocumentView extends React.Component<DocumentViewProps> {
let field = this.props.Document.Get(key);
bindings[key.Name] = field && field != FieldWaiting ? field.GetValue() : field;
}
+ /*
+ Should this be moved to CollectionFreeformView or another component that renders
+ Document backgrounds (or contents based on a layout key, which could be used here as well)
+ that CollectionFreeformView uses? It seems like a lot for it to be here considering only one view currently uses it...
+ */
let backgroundLayout = this.backgroundLayout;
if (backgroundLayout) {
let backgroundView = () => (<JsxParser