forked from MapComplete/MapComplete
Feature(create_copy): add layer filter lock
This commit is contained in:
parent
6a200e04bc
commit
d78207c98a
3 changed files with 48 additions and 2 deletions
|
|
@ -24,7 +24,9 @@ export default class FilteredLayer {
|
|||
|
||||
/**
|
||||
* Indicates if some filter is set.
|
||||
* If this is the case, adding a new element of this type might be a bad idea
|
||||
* If this is the case, adding a new element of this type might be a bad idea.
|
||||
*
|
||||
* Does not include the global filters
|
||||
*/
|
||||
readonly hasFilter: Store<boolean>
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,12 @@ export class MenuState {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
this.pageStates.filter.addCallback(opened => {
|
||||
if(!opened){
|
||||
this.highlightedLayerInFilters.set(undefined)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
public openMenuIfNeeded(shouldShowWelcomeMessage: boolean, themeid: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue