mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
improve layout
This commit is contained in:
@@ -436,7 +436,9 @@ const DashboardDevices: FC = () => {
|
||||
}
|
||||
|
||||
const sendCommand = (dv: DeviceValue) => {
|
||||
setSelectedDeviceValueWriteable(dv.c && me.admin && !hasMask(dv.id, DeviceEntityMask.DV_READONLY));
|
||||
if (dv.c !== undefined) {
|
||||
setSelectedDeviceValueWriteable(me.admin && !hasMask(dv.id, DeviceEntityMask.DV_READONLY));
|
||||
}
|
||||
setSelectedDeviceValue(dv);
|
||||
setDeviceValueDialogOpen(true);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user