diff --git a/interface/src/project/SettingsCustomization.tsx b/interface/src/project/SettingsCustomization.tsx index e83f58334..bf392ea3b 100644 --- a/interface/src/project/SettingsCustomization.tsx +++ b/interface/src/project/SettingsCustomization.tsx @@ -560,18 +560,63 @@ const SettingsCustomization: FC = () => { const renderEditEntity = () => { if (deviceEntity) { + const de = deviceEntity; return ( setDeviceEntity(undefined)}> - {LL.RENAME() + ' ' + LL.ENTITY_NAME()} + {LL.EDIT() + ' ' + LL.ENTITY() + ' ' + de.id} + - - {deviceEntity.n} + { + de.m = getMaskNumber(mask); + if (de.n === '' && de.m & DeviceEntityMask.DV_READONLY) { + de.m = de.m | DeviceEntityMask.DV_WEB_EXCLUDE; + } + if (de.m & DeviceEntityMask.DV_WEB_EXCLUDE) { + de.m = de.m & ~DeviceEntityMask.DV_FAVORITE; + } + setMasks(['']); + }} + > + + + + + + + + + + + + + + + + + {LL.DEFAULT() + ' ' + LL.NAME()}: {deviceEntity.n} +