diff options
| author | Jenny Yu <jennyyu212@outlook.com> | 2022-06-15 19:46:10 -0700 |
|---|---|---|
| committer | Jenny Yu <jennyyu212@outlook.com> | 2022-06-15 19:46:10 -0700 |
| commit | 6dc7a0d37f055c57135b91d4d54174ee156b61f5 (patch) | |
| tree | 773979ac856ccbffb7ca2440f8f83ad628a0c0d1 /src/client/views/topbar | |
| parent | 51c60d4d349c66432e57255f459c3d175ac3b251 (diff) | |
share and remove dashboard from context menu
Diffstat (limited to 'src/client/views/topbar')
| -rw-r--r-- | src/client/views/topbar/TopBar.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx index 0665e79ed..e4f48adce 100644 --- a/src/client/views/topbar/TopBar.tsx +++ b/src/client/views/topbar/TopBar.tsx @@ -76,9 +76,6 @@ export class TopBar extends React.Component { </div> <div className="topbar-right" > {CurrentUserUtils.ActiveDashboard ? <div className="topbar-button-text" onClick={() => { SharingManager.Instance.open(undefined, activeDashboard) }}> - {/* TODO: if I have edit access to the dashboard, display share - if this is a shared dashboard, display "view original or view annotated" */} - {/* { Doc.GetProto(CurrentUserUtils.ActiveDashboard)?.author === Doc.CurrentUserEmail ? "Share": "view original" } */} {GetEffectiveAcl(Doc.GetProto(CurrentUserUtils.ActiveDashboard)) === AclAdmin ? "Share" : "view original"} </div> : (null)} <div className="topbar-button-icon" onClick={() => window.open( |
