aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent43968431d3c94cea07f06421d29ac0f190c55cde (diff)
feat: opening up sharing manager on dashboard
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionStackingView.scss5
-rw-r--r--src/client/views/topbar/TopBar.tsx3
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionStackingView.scss b/src/client/views/collections/CollectionStackingView.scss
index 2f002736d..73572299a 100644
--- a/src/client/views/collections/CollectionStackingView.scss
+++ b/src/client/views/collections/CollectionStackingView.scss
@@ -30,11 +30,10 @@
width: 90%;
margin: 5px;
font-size: 11px;
- background-color: $light-blue;
color: $medium-blue;
padding: 10px;
- border-radius: 10px;
- border: solid 2px $medium-blue;
+ border-radius: 5px;
+ border: solid .5px $medium-blue;
}
}
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>