From 4909910355c321c3776a6405fd131bfb2954c4b9 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 10 Jun 2022 10:23:48 -0400 Subject: added snapshot and explore back into topbar for now. --- src/client/views/topbar/TopBar.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx index 5bee58ccb..0efde8197 100644 --- a/src/client/views/topbar/TopBar.tsx +++ b/src/client/views/topbar/TopBar.tsx @@ -47,10 +47,20 @@ export class TopBar extends React.Component {
{ const dashView = DocumentManager.Instance.getDocumentView(activeDashboard); ContextMenu.Instance.addItem({ description: "Open Dashboard View", event: this.navigateToHome, icon: "edit" }); + ContextMenu.Instance.addItem({ description: "Snapshot Dashboard", event: async () => { + const batch = UndoManager.StartBatch("snapshot"); + await CurrentUserUtils.snapshotDashboard(Doc.UserDoc()); + batch.end(); + }, icon: "edit" }); dashView?.showContextMenu(e.clientX+20, e.clientY+30); }}> - +
+ Browsing mode for directly navigating to documents} placement="bottom"> +
MainView.Instance._exploreMode = !MainView.Instance._exploreMode)}> + +
+
{SharingManager.Instance.open(undefined, activeDashboard)}}> -- cgit v1.2.3-70-g09d2