From 4ac7a62d813738b0047caefbcf40d3063ec9e6c1 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 5 Feb 2019 22:37:46 -0500 Subject: checkpoint --- src/views/collections/CollectionDockingView.tsx | 6 ++++-- src/views/collections/CollectionFreeFormView.tsx | 3 ++- src/views/collections/CollectionSchemaView.tsx | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/views/collections') diff --git a/src/views/collections/CollectionDockingView.tsx b/src/views/collections/CollectionDockingView.tsx index 51e2cfbbc..adb885859 100644 --- a/src/views/collections/CollectionDockingView.tsx +++ b/src/views/collections/CollectionDockingView.tsx @@ -99,7 +99,8 @@ export class CollectionDockingView extends CollectionViewBase { const value: Document[] = Document.GetFieldValue(fieldKey, ListField, []); for (var i: number = 0; i < value.length; i++) { if (value[i].Id === component) { - return (); + var data = value[i].GetField(KeyStore.Data); + return (); } } if (component === "text") { @@ -239,8 +240,9 @@ export class CollectionDockingView extends CollectionViewBase { var containingDiv = "component_" + me.nextId(); container.getElement().html("
"); setTimeout(function () { + var data = state.doc.GetField(KeyStore.Data); ReactDOM.render(( - + ), document.getElementById(containingDiv) ); diff --git a/src/views/collections/CollectionFreeFormView.tsx b/src/views/collections/CollectionFreeFormView.tsx index 2c10c8056..ad470f9e2 100644 --- a/src/views/collections/CollectionFreeFormView.tsx +++ b/src/views/collections/CollectionFreeFormView.tsx @@ -189,6 +189,7 @@ export class CollectionFreeFormView extends CollectionViewBase { const panx: number = Document.GetNumberField(KeyStore.PanX, 0); const pany: number = Document.GetNumberField(KeyStore.PanY, 0); const currScale: number = Document.GetNumberField(KeyStore.Scale, 1); + const data = Document.GetField(KeyStore.Data); return (
{value.map(doc => { - return (); + return (); })}
diff --git a/src/views/collections/CollectionSchemaView.tsx b/src/views/collections/CollectionSchemaView.tsx index 8503aaf1e..bde727fea 100644 --- a/src/views/collections/CollectionSchemaView.tsx +++ b/src/views/collections/CollectionSchemaView.tsx @@ -74,7 +74,8 @@ export class CollectionSchemaView extends CollectionViewBase { [KS.Title, KS.Data, KS.Author]) let content; if (this.selectedIndex != -1) { - content = () + var data = this.props.DocumentForCollection.GetField(KS.Data); + content = () } else { content =
} -- cgit v1.2.3-70-g09d2