aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/topbar
diff options
context:
space:
mode:
authorJenny Yu <jennyyu212@outlook.com>2022-06-09 20:59:22 -0700
committerJenny Yu <jennyyu212@outlook.com>2022-06-09 20:59:22 -0700
commit5089c14ca27a52326d3f38e7f3ef572548f72d2a (patch)
tree430a9e387e0b306caf7f96cb23913b1b7b54d9cc /src/client/views/topbar
parent43968431d3c94cea07f06421d29ac0f190c55cde (diff)
feat: opening up sharing manager on dashboard
Diffstat (limited to 'src/client/views/topbar')
-rw-r--r--src/client/views/topbar/TopBar.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx
index 258891099..79d48e13c 100644
--- a/src/client/views/topbar/TopBar.tsx
+++ b/src/client/views/topbar/TopBar.tsx
@@ -9,6 +9,7 @@ import { Cast, StrCast } from '../../../fields/Types';
import { Utils } from '../../../Utils';
import { CurrentUserUtils } from "../../util/CurrentUserUtils";
import { SettingsManager } from "../../util/SettingsManager";
+import { SharingManager } from "../../util/SharingManager";
import { undoBatch, UndoManager } from "../../util/UndoManager";
import { Borders, Colors } from "../global/globalEnums";
import { MainView } from "../MainView";
@@ -57,7 +58,7 @@ export class TopBar extends React.Component {
<div className="topbar-right" >
{/* TODO: if this is my dashboard, display share
if this is a shared dashboard, display "view original or view annotated" */}
- <div className="topbar-button-text" >Share</div>
+ <div className="topbar-button-text" onClick={() => {SharingManager.Instance.open(undefined, activeDashboard)}}>Share</div>
</div>
</div>
</div>