diff options
author | bobzel <zzzman@gmail.com> | 2023-07-02 19:06:56 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-07-02 19:06:56 -0400 |
commit | 446ab35c19ae18a609acf26babbc4e6dc1c46876 (patch) | |
tree | 4c489d7dd5522a16d2d714b6fabc57170281f043 /src/client/views/nodes/DocumentView.tsx | |
parent | 330598d12d0e05a294a4b2b95a4f1c275c04b4c1 (diff) |
improved highlighting of tabs to show focus/active. added. menu item to open a tab in lightbox
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index c10c0005d..19f9f15a4 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -729,6 +729,10 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps const templateDoc = Cast(this.props.Document[StrCast(this.props.Document.layout_fieldKey)], Doc, null); const appearance = cm.findByDescription('UI Controls...'); const appearanceItems: ContextMenuProps[] = appearance && 'subitems' in appearance ? appearance.subitems : []; + + if (this.props.renderDepth === 0) { + appearanceItems.push({ description: 'Open in Lightbox', event: () => LightboxView.SetLightboxDoc(this.rootDoc), icon: 'hand-point-right' }); + } !Doc.noviceMode && templateDoc && appearanceItems.push({ description: 'Open Template ', event: () => this.props.addDocTab(templateDoc, OpenWhere.addRight), icon: 'eye' }); !appearance && appearanceItems.length && cm.addItem({ description: 'UI Controls...', subitems: appearanceItems, icon: 'compass' }); |