aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-09-18 22:20:12 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-09-18 22:20:12 -0400
commit25ea85f7cf2c7f6109eb740ffc111325a39fb745 (patch)
tree7f5cda29b7818c8b02ab05312905a22c4ae344d2 /src/client/views/collections/CollectionSchemaView.tsx
parent4652881dbdffefab2240a2a0a509f8505376f91b (diff)
a bunch more template cleanup. no more miniLayout and detailedLayout. just layoutNative and layoutCustom
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaView.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx
index 5d09ade32..4d2b8e1c1 100644
--- a/src/client/views/collections/CollectionSchemaView.tsx
+++ b/src/client/views/collections/CollectionSchemaView.tsx
@@ -948,8 +948,10 @@ export class CollectionSchemaPreview extends React.Component<CollectionSchemaPre
if (de.data instanceof DragManager.DocumentDragData) {
this.props.childDocs && this.props.childDocs.map(otherdoc => {
let target = Doc.GetProto(otherdoc);
- target.layout = target.detailedLayout = Doc.MakeDelegate(de.data.draggedDocuments[0]);
- target.miniLayout = ComputedField.MakeFunction("this.image_data[0]");
+ let layoutNative = Doc.MakeTitled("layoutNative");
+ layoutNative.layout = ComputedField.MakeFunction("this.image_data[0]");
+ target.layoutNative = layoutNative;
+ target.layoutCUstom = target.layout = Doc.MakeDelegate(de.data.draggedDocuments[0]);
});
e.stopPropagation();
}