diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-22 13:44:10 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-22 13:44:10 -0500 |
| commit | 36cd323ff859cb8367d38c84852d09370e899518 (patch) | |
| tree | 492e26d92e1b5973e9cdba28f6fc70872ae40488 /src/client/views/nodes | |
| parent | 628abc9e0498505f4c05261404d37bd830ef8797 (diff) | |
fixing editing of treeView titles to not write to document.
Diffstat (limited to 'src/client/views/nodes')
| -rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index de4e99948..97dc922db 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -729,7 +729,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps } } - if (this.props.removeDocument && !this.props.Document._stayInCollection && 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 && (!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) moreItems.push({ description: "Close", event: this.deleteClicked, icon: "times" }); } |
