forked from MapComplete/MapComplete
UX: floor selector: add white background pane
This commit is contained in:
parent
8c478f5e4e
commit
2c8d207866
2 changed files with 16 additions and 11 deletions
|
|
@ -130,8 +130,11 @@ export default class LayerState {
|
|||
public setLevelFilter(level?: string) {
|
||||
// Remove all previous
|
||||
const l = this.globalFilters.data.length
|
||||
// Remove all global filters tagged 'levels
|
||||
this.globalFilters.data = this.globalFilters.data.filter((f) => f.id !== "level")
|
||||
if (!level) {
|
||||
// Level is undefined - we thus only want to remove the global filter
|
||||
// We've just done this above, but the listeners are not aware yet. Let's ping (if needed) and move on
|
||||
if (l !== this.globalFilters.data.length) {
|
||||
this.globalFilters.ping()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue