forked from MapComplete/MapComplete
Styling: theme view buttons
This commit is contained in:
parent
c9697b7ffb
commit
652d617583
8 changed files with 160 additions and 80 deletions
|
@ -54,6 +54,17 @@ export class MenuState {
|
|||
this.highlightedLayerInFilters.setData(undefined)
|
||||
}
|
||||
})
|
||||
|
||||
this.menuIsOpened.addCallbackAndRunD((opened) => {
|
||||
if (opened) {
|
||||
this.themeIsOpened.setData(false)
|
||||
}
|
||||
})
|
||||
this.themeIsOpened.addCallbackAndRunD((opened) => {
|
||||
if (opened) {
|
||||
this.menuIsOpened.setData(false)
|
||||
}
|
||||
})
|
||||
}
|
||||
public openFilterView(highlightLayer?: LayerConfig | string) {
|
||||
this.themeIsOpened.setData(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue