diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-02 01:31:18 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-05-02 01:31:18 -0400 |
| commit | 2c1cf7fd3e1d71813f23f60acb9264a4f8bf33b0 (patch) | |
| tree | 2e38e5a51758dc54d6be586a3f53ca96eec3a020 /src/client/views/collections | |
| parent | eebe58b47acfe3b13c22407b98763cdbd6e1eb58 (diff) | |
| parent | 407c104f0ad0957d71f73c14f5b835fab387ecd2 (diff) | |
Merge branch 'newDocs' of github-tsch-brown:browngraphicslab/Dash-Web into newDocs
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index 85a12defa..c58e7780c 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -13,6 +13,8 @@ import { Utils } from "../../../../Utils"; import { Doc } from "../../../../new_fields/Doc"; import { NumCast, Cast } from "../../../../new_fields/Types"; import { InkField, StrokeData } from "../../../../new_fields/InkField"; +import { Templates } from "../../Templates"; +import { List } from "../../../../new_fields/List"; interface MarqueeViewProps { getContainerTransform: () => Transform; @@ -178,7 +180,8 @@ export class MarqueeView extends React.Component<MarqueeViewProps> // SelectionManager.DeselectAll(); if (e.key === "r") { let summary = Docs.TextDocument({ x: bounds.left, y: bounds.top, width: 300, height: 100, backgroundColor: "yellow", title: "-summary-" }); - Doc.MakeLink(summary.proto!, newCollection.proto!); + summary.doc1 = newCollection.proto!; + summary.templates = new List<string>([Templates.Summary.Layout]); this.props.addLiveTextDocument(summary); e.preventDefault(); } |
