hide search on device dialog open
This commit is contained in:
parent
6318aad171
commit
10e722c53d
1 changed files with 4 additions and 3 deletions
|
|
@ -1210,7 +1210,8 @@
|
|||
}
|
||||
|
||||
function showDevices() {
|
||||
updateDeviceList();
|
||||
// disable device filter and show devices
|
||||
UI.dev.search.onclick(true);
|
||||
API.modal.show('setup');
|
||||
UI.deviceList.focus();
|
||||
}
|
||||
|
|
@ -1869,9 +1870,9 @@
|
|||
if (!ev.buttons) API.event.emit('slider.unlabel');
|
||||
};
|
||||
|
||||
UI.dev.search.onclick = () => {
|
||||
UI.dev.search.onclick = (hide) => {
|
||||
let style = UI.dev.filter.style;
|
||||
if (style.display === 'flex') {
|
||||
if (style.display === 'flex' || hide === true) {
|
||||
style.display = '';
|
||||
deviceFilter = null;
|
||||
updateDeviceList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue