* Hide nanoleaf:IP devices in UI * Color clicking behavior is more clear * small icons for mega-groups * common tags/roles for groups * fix default names in UI state * hexagon corner * secondary lamp icon * fix selection bugs in device form * select all/none hotkey * quick assign modal
This commit is contained in:
@@ -132,11 +132,19 @@
|
||||
state.update(state => {
|
||||
if (patch.full != null) {
|
||||
state = patch.full;
|
||||
for (const deviceId in state.devices) {
|
||||
if (deviceId.startsWith("nanoleaf:") && deviceId.split(":").length === 2) {
|
||||
delete state.devices[deviceId];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (const deviceId in patch.devices) {
|
||||
if (!patch.devices.hasOwnProperty(deviceId)) {
|
||||
continue
|
||||
continue;;
|
||||
}
|
||||
if (deviceId.startsWith("nanoleaf:") && deviceId.split(":").length === 2) {
|
||||
continue;
|
||||
}
|
||||
|
||||
state.devices = {...state.devices}
|
||||
|
||||
Reference in New Issue
Block a user