From 842f571bfb4952d12804a8dbdc66aedbf2bf6b81 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Mon, 18 Feb 2019 02:46:35 -0500 Subject: Added comment/question about document view --- src/client/views/nodes/DocumentView.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 { 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 = () => (