Always keep layers drawer open

This commit is contained in:
Lukas Martinelli 2016-12-16 14:52:44 +01:00
parent e5c6af3fad
commit d599b7fd5b
2 changed files with 6 additions and 10 deletions

View file

@ -78,19 +78,18 @@ export default class App extends React.Component {
} }
onOpenSettings() { onOpenSettings() {
this.setState({ workContext: "settings" }) //TODO: open settings modal
//this.setState({ workContext: "settings" })
} }
onOpenAbout() { onOpenAbout() {
this.setState({ workContext: "about" }) //TODO: open about modal
} //this.setState({ workContext: "about" })
onOpenLayers() {
this.setState({ workContext: "layers", })
} }
onOpenSources() { onOpenSources() {
this.setState({ workContext: "sources", }) //TODO: open sources modal
//this.setState({ workContext: "sources", })
} }
onAccessTokenChanged(newToken) { onAccessTokenChanged(newToken) {
@ -107,7 +106,6 @@ export default class App extends React.Component {
onStyleDownload={this.onStyleDownload.bind(this)} onStyleDownload={this.onStyleDownload.bind(this)}
onOpenSettings={this.onOpenSettings.bind(this)} onOpenSettings={this.onOpenSettings.bind(this)}
onOpenAbout={this.onOpenAbout.bind(this)} onOpenAbout={this.onOpenAbout.bind(this)}
onOpenLayers={this.onOpenLayers.bind(this)}
onOpenSources={this.onOpenSources.bind(this)} onOpenSources={this.onOpenSources.bind(this)}
/> />
<WorkspaceDrawer <WorkspaceDrawer

View file

@ -46,8 +46,6 @@ export class Toolbar extends React.Component {
onOpenAbout: React.PropTypes.func, onOpenAbout: React.PropTypes.func,
// Open sources drawer // Open sources drawer
onOpenSources: React.PropTypes.func, onOpenSources: React.PropTypes.func,
// Open layers drawer
onOpenLayers: React.PropTypes.func,
// Whether a style is available for download or saving // Whether a style is available for download or saving
// A style with no layers should not be available // A style with no layers should not be available
styleAvailable: React.PropTypes.bool, styleAvailable: React.PropTypes.bool,