From 286740eab0a5111a155bd688a6ce0ab69909303e Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 10 Jun 2022 10:29:41 -0400 Subject: added logout to user label --- src/client/views/topbar/TopBar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx index 0efde8197..0db3950a2 100644 --- a/src/client/views/topbar/TopBar.tsx +++ b/src/client/views/topbar/TopBar.tsx @@ -38,7 +38,10 @@ export class TopBar extends React.Component {
- {activeDashboard ?
{Doc.CurrentUserEmail} (Placeholder)
: (null)} + {activeDashboard ?
{ + ContextMenu.Instance.addItem({ description: "Logout", event: () => window.location.assign(Utils.prepend("/logout")), icon: "edit" }); + ContextMenu.Instance.displayMenu(e.clientX +5, e.clientY + 10); + }}>{Doc.CurrentUserEmail}
: (null)}
SelectionManager.SelectView(DocumentManager.Instance.getDocumentView(activeDashboard)!, false)}> -- cgit v1.2.3-70-g09d2