diff options
author | bobzel <zzzman@gmail.com> | 2021-02-22 16:09:21 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-22 16:09:21 -0500 |
commit | 4fcb0b69f2b96c5ace46362490d54f1059eb1339 (patch) | |
tree | 2b7f1c1b8601f627203530dd4b027c15343f2282 /src/client/views/nodes/DocumentView.tsx | |
parent | 1ef89b4f56ce8567da3b632e95ea31e1c3c4386a (diff) |
switched folders so that they're not marked as system anymore. made close menu appear unless something is a system doc.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 97dc922db..b79c1d474 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -446,7 +446,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps shiftKey: e.shiftKey }, console.log); UndoManager.RunInBatch(() => func().result?.select === true ? this.props.select(false) : "", "on double click"); - } else if (!Doc.IsSystem(this.props.Document)) { + } else if (!Doc.IsSystem(this.rootDoc)) { if (this.props.Document.type !== DocumentType.LABEL) { UndoManager.RunInBatch(() => this.props.addDocTab((this.rootDoc._fullScreenView as Doc) || this.rootDoc, "lightbox"), "double tap"); SelectionManager.DeselectAll(); @@ -729,7 +729,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps } } - if (this.props.removeDocument && (!this.props.Document._stayInCollection || this.props.Document.isFolder) && CurrentUserUtils.ActiveDashboard !== this.props.Document) { // need option to gray out menu items ... preferably with a '?' that explains why they're grayed out (eg., no permissions) + if (this.props.removeDocument && !Doc.IsSystem(this.rootDoc) && CurrentUserUtils.ActiveDashboard !== this.props.Document) { // need option to gray out menu items ... preferably with a '?' that explains why they're grayed out (eg., no permissions) moreItems.push({ description: "Close", event: this.deleteClicked, icon: "times" }); } |