mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:05:25 +01:00
Always keep layers drawer open
This commit is contained in:
parent
e5c6af3fad
commit
d599b7fd5b
2 changed files with 6 additions and 10 deletions
14
src/app.jsx
14
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)}
|
||||
/>
|
||||
<WorkspaceDrawer
|
||||
|
|
|
@ -46,8 +46,6 @@ export class Toolbar extends React.Component {
|
|||
onOpenAbout: React.PropTypes.func,
|
||||
// Open sources drawer
|
||||
onOpenSources: React.PropTypes.func,
|
||||
// Open layers drawer
|
||||
onOpenLayers: React.PropTypes.func,
|
||||
// Whether a style is available for download or saving
|
||||
// A style with no layers should not be available
|
||||
styleAvailable: React.PropTypes.bool,
|
||||
|
|
Loading…
Reference in a new issue