aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-06-21 01:00:32 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-06-21 01:00:32 -0400
commitce54e04c09ee0f7549d436f6ffe1f9f9b9efd7b5 (patch)
tree1a6ce2135c9a02731d5681d797c0784cd499e2d0 /src/client/views/collections/CollectionView.tsx
parent22e0ae1c7677a1fa3411e5ba05922b1d3b914b17 (diff)
user assignable templates
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 6d3301ce4..e24466d57 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -60,8 +60,9 @@ export class CollectionView extends React.Component<FieldViewProps> {
ContextMenu.Instance.addItem({ description: "View Modes...", subitems: subItems });
ContextMenu.Instance.addItem({
description: "Add Description Template", event: undoBatch(() => {
- Doc.GetProto(this.props.Document).description = "my first templated box";
- let template = Doc.MakeAlias(this.props.Document);
+ let collection = this.props.Document;
+ Doc.GetProto(collection).description = "my first templated box";
+ let template = Doc.MakeAlias(collection);
template.layout = FormattedTextBox.LayoutString("description");
template.x = 0;
template.y = 0;