diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-12-03 17:13:16 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-12-03 17:13:16 +0530 |
commit | 92c0f12098866a0e1936a74e9e50a9c0c5c1ad27 (patch) | |
tree | 5ba922dfcbda5fb46dfe950e44107e48581c29bf /src | |
parent | 3bbca467d5cadb367c34c5296e957bd1d388cfca (diff) |
greyed out sharing indicator
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 79ee0291d..514130c3d 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -964,7 +964,10 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu {!this.props.Document.numUsersShared && !this.props.Document.numGroupsShared ? (null) : <Tooltip title={<> <div className="dash-tooltip">Tap to open sharing menu</div></>}> - <div className="sharingIndicator" onPointerDown={() => SharingManager.Instance.open(undefined, this.props.Document)}> + <div className="sharingIndicator" + onPointerDown={() => SharingManager.Instance.open(undefined, this.props.Document)} + style={{ backgroundColor: GetEffectiveAcl(this.props.Document[DataSym]) === AclAdmin ? "#9dca96" : "lightgrey" }} + > <FontAwesomeIcon size="lg" icon={this.indicatorIcon} /> </div> </Tooltip > |