Add TOS and Privacy url via config (#1300)

* add tos and privacy url via config

* typo

* readd condition

* param
This commit is contained in:
Colin Megill
2020-03-26 11:33:41 -04:00
committed by GitHub
parent 91e17e64a5
commit adf7010f50
2 changed files with 19 additions and 3 deletions
+8 -2
View File
@@ -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 {
<InformationMenu
libraryVersions={libraryVersions}
aboutLink={aboutLink}
tosURL={tosURL}
privacyURL={privacyURL}
/>
</div>
);