UX: floor selector: add white background pane

This commit is contained in:
Pieter Vander Vennet 2025-04-23 10:46:33 +02:00
parent 8c478f5e4e
commit 2c8d207866
2 changed files with 16 additions and 11 deletions

View file

@ -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()
}