diff options
| author | monikahedman <monika_hedman@brown.edu> | 2019-08-15 16:51:49 -0400 |
|---|---|---|
| committer | monikahedman <monika_hedman@brown.edu> | 2019-08-15 16:51:49 -0400 |
| commit | 1f6f19388e081b856a3d2f7243bcfdca37a2f826 (patch) | |
| tree | ff8c75a96c56c021e4cc8bf2741f5fd3c4252d77 /src/client/views/collections/CollectionView.tsx | |
| parent | 9d76e8c2f318b4c6a4f941e6d2c8e795bc93f372 (diff) | |
| parent | b6b18c2243fb6b6c0e0850962d433b0bb08753c9 (diff) | |
pulled from master
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index aaaa623fb..7e1adaa19 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -109,6 +109,7 @@ export class CollectionView extends React.Component<FieldViewProps> { let existing = ContextMenu.Instance.findByDescription("Layout..."); let layoutItems: ContextMenuProps[] = existing && "subitems" in existing ? existing.subitems : []; layoutItems.push({ description: "Create Layout Instance", event: () => this.props.addDocTab && this.props.addDocTab(Doc.ApplyTemplate(this.props.Document)!, undefined, "onRight"), icon: "project-diagram" }); + layoutItems.push({ description: `${this.props.Document.forceActive ? "Select" : "Force"} Contents Active`, event: () => this.props.Document.forceActive = !this.props.Document.forceActive, icon: "project-diagram" }); !existing && ContextMenu.Instance.addItem({ description: "Layout...", subitems: layoutItems, icon: "hand-point-right" }); } } |
