mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:11:17 +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() {
|
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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue