diff options
| author | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-01 02:31:07 -0400 |
|---|---|---|
| committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-08-01 02:31:07 -0400 |
| commit | cd02f494975ad44b85c08d3108f185edbea43258 (patch) | |
| tree | 1c4f30004385d5ffc711032f51cb8cfc5be00898 /src/client/views/collections/CollectionView.tsx | |
| parent | ec224416fc454c7fdbb62943408226c973d8c751 (diff) | |
| parent | d4accdd22cabdd78fc7bd76dd7ce3cb59e4b102f (diff) | |
Merge branch 'master' into speech-to-text
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index 34adc5840..57dc5879b 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -111,6 +111,9 @@ export class CollectionView extends React.Component<FieldViewProps> { } ContextMenu.Instance.addItem({ description: "View Modes...", subitems: subItems, icon: "eye" }); ContextMenu.Instance.addItem({ description: "Apply Template", event: () => this.props.addDocTab && this.props.addDocTab(Doc.ApplyTemplate(this.props.Document)!, undefined, "onRight"), icon: "project-diagram" }); + ContextMenu.Instance.addItem({ + description: this.props.Document.chromeStatus !== "disabled" ? "Hide Chrome" : "Show Chrome", event: () => this.props.Document.chromeStatus = (this.props.Document.chromeStatus !== "disabled" ? "disabled" : "enabled"), icon: "project-diagram" + }); } } |
