From d599b7fd5bced7ec20c6f60b7a321c16207ddb2d Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Fri, 16 Dec 2016 14:52:44 +0100 Subject: [PATCH] Always keep layers drawer open --- src/app.jsx | 14 ++++++-------- src/toolbar.jsx | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 9192e4f..fe63388 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -78,19 +78,18 @@ export default class App extends React.Component { } onOpenSettings() { - this.setState({ workContext: "settings" }) + //TODO: open settings modal + //this.setState({ workContext: "settings" }) } onOpenAbout() { - this.setState({ workContext: "about" }) - } - - onOpenLayers() { - this.setState({ workContext: "layers", }) + //TODO: open about modal + //this.setState({ workContext: "about" }) } onOpenSources() { - this.setState({ workContext: "sources", }) + //TODO: open sources modal + //this.setState({ workContext: "sources", }) } onAccessTokenChanged(newToken) { @@ -107,7 +106,6 @@ export default class App extends React.Component { onStyleDownload={this.onStyleDownload.bind(this)} onOpenSettings={this.onOpenSettings.bind(this)} onOpenAbout={this.onOpenAbout.bind(this)} - onOpenLayers={this.onOpenLayers.bind(this)} onOpenSources={this.onOpenSources.bind(this)} />