diff --git a/client/src/components/menubar/index.js b/client/src/components/menubar/index.js index 903c586d..52951f7e 100644 --- a/client/src/components/menubar/index.js +++ b/client/src/components/menubar/index.js @@ -32,7 +32,9 @@ import UndoRedoReset from "./undoRedo"; aboutLink: state.config?.links?.["about-dataset"], disableDiffexp: state.config?.parameters?.["disable-diffexp"] ?? false, diffexpMayBeSlow: state.config?.parameters?.["diffexp-may-be-slow"] ?? false, - showCentroidLabels: state.centroidLabels.showLabels + showCentroidLabels: state.centroidLabels.showLabels, + tosURL: state.config?.parameters?.about_legal_tos, + privacyURL: state.config?.parameters?.about_legal_privacy })) class MenuBar extends React.Component { static isValidDigitKeyEvent(e) { @@ -279,7 +281,9 @@ class MenuBar extends React.Component { clipPercentileMax, graphInteractionMode, aboutLink, - showCentroidLabels + showCentroidLabels, + privacyURL, + tosURL } = this.props; const { pendingClipPercentiles } = this.state; @@ -402,6 +406,8 @@ class MenuBar extends React.Component { ); diff --git a/client/src/components/menubar/infoMenu.js b/client/src/components/menubar/infoMenu.js index a4c2a5c5..6b2d60d5 100644 --- a/client/src/components/menubar/infoMenu.js +++ b/client/src/components/menubar/infoMenu.js @@ -3,7 +3,7 @@ import React from "react"; import { Button, Popover, Menu, MenuItem, Position } from "@blueprintjs/core"; function InformationMenu(props) { - const { libraryVersions, aboutLink } = props; + const { libraryVersions, aboutLink, tosURL, privacyURL } = props; return (
+ {tosURL ? : null } + {privacyURL ? : null } } position={Position.BOTTOM_RIGHT}