aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionTreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-29 00:53:11 -0400
committerbobzel <zzzman@gmail.com>2020-08-29 00:53:11 -0400
commit7b8924d203c6367edbf7e6ffbe2e8f2e6f24b859 (patch)
tree7870fa5d896c9026ad7042afc283820a0d89ff6e /src/client/views/collections/CollectionTreeView.tsx
parent2d37a7f6402aca311499fb1d61b05cca2487475f (diff)
added some link follow options to link Editor. Big overhaul of dockingView to make things undoable and cleaner
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
-rw-r--r--src/client/views/collections/CollectionTreeView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx
index cdfa67769..fffbe65a3 100644
--- a/src/client/views/collections/CollectionTreeView.tsx
+++ b/src/client/views/collections/CollectionTreeView.tsx
@@ -738,7 +738,7 @@ export class CollectionTreeView extends CollectionSubView<Document, Partial<coll
}
onContextMenu = (e: React.MouseEvent): void => {
// need to test if propagation has stopped because GoldenLayout forces a parallel react hierarchy to be created for its top-level layout
- if (!e.isPropagationStopped() && this.doc === Doc.UserDoc().myDashboards) {
+ if (!e.isPropagationStopped() && this.doc === CurrentUserUtils.MyDashboards) {
ContextMenu.Instance.addItem({ description: "Create Dashboard", event: () => CurrentUserUtils.createNewDashboard(Doc.UserDoc()), icon: "plus" });
ContextMenu.Instance.addItem({ description: "Delete Dashboard", event: () => this.remove(this.doc), icon: "minus" });
e.stopPropagation();