rollback changes

This commit is contained in:
proddy
2023-03-12 08:48:56 +01:00
parent 0d81dcde10
commit 64b202225a

View File

@@ -503,6 +503,7 @@ const SettingsCustomization: FC = () => {
{tableList.map((de: DeviceEntity) => ( {tableList.map((de: DeviceEntity) => (
<Row key={de.id} item={de} onClick={() => editEntity(de)}> <Row key={de.id} item={de} onClick={() => editEntity(de)}>
<Cell stiff> <Cell stiff>
{!deviceEntity && (
<ToggleButtonGroup <ToggleButtonGroup
size="small" size="small"
color="secondary" color="secondary"
@@ -551,11 +552,12 @@ const SettingsCustomization: FC = () => {
/> />
</ToggleButton> </ToggleButton>
</ToggleButtonGroup> </ToggleButtonGroup>
)}
</Cell> </Cell>
<Cell>{formatName(de)}</Cell> <Cell>{!deviceEntity && formatName(de)}</Cell>
<Cell>{!(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.mi)}</Cell> <Cell>{!deviceEntity && !(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.mi)}</Cell>
<Cell>{!(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.ma)}</Cell> <Cell>{!deviceEntity && !(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.ma)}</Cell>
<Cell>{formatValue(de.v)}</Cell> <Cell>{!deviceEntity && formatValue(de.v)}</Cell>
</Row> </Row>
))} ))}
</Body> </Body>