Fixed contrast mode in the URL.

This commit is contained in:
Filip Barl
2019-05-23 16:22:46 +02:00
parent f8c7196cef
commit 765d9a06ac
3 changed files with 7 additions and 10 deletions

View File

@@ -13,19 +13,12 @@ import {
class Footer extends React.Component {
constructor(props, context) {
super(props, context);
this.handleContrastClick = this.handleContrastClick.bind(this);
this.handleRelayoutClick = this.handleRelayoutClick.bind(this);
}
handleContrastClick(ev) {
handleContrastClick = (ev) => {
ev.preventDefault();
this.props.setContrastMode(!this.props.contrastMode);
}
handleRelayoutClick(ev) {
handleRelayoutClick = (ev) => {
ev.preventDefault();
trackAnalyticsEvent('scope.layout.refresh.click', {
layout: this.props.topologyViewMode,