Commit a31c78e7 authored by David Redondo's avatar David Redondo 🏎
Browse files

Do not close popup after selecting one sensors.

Makes it easier to select multiple sensors at once. The popup is automatically
closed if the maximum number of supported sensors is selected.
parent ab5ad67b
...@@ -355,9 +355,11 @@ Control { ...@@ -355,9 +355,11 @@ Control {
if (control.selected === undefined || control.selected === null) { if (control.selected === undefined || control.selected === null) {
control.selected = [] control.selected = []
} }
control.selected.push(model.SensorId) const length = control.selected.push(model.SensorId)
control.selectedChanged() control.selectedChanged()
popup.close() if (control.maxAllowedSensors == length) {
popup.close();
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment