mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add is_system to analog sensor so internal sensors cannot be removed
This commit is contained in:
@@ -447,6 +447,7 @@ const SensorsAnalogDialog = ({
|
||||
<Box flexGrow={1} sx={{ '& button': { mt: 0 } }}>
|
||||
<Button
|
||||
startIcon={<RemoveIcon />}
|
||||
disabled={editItem.s}
|
||||
variant="outlined"
|
||||
color="warning"
|
||||
onClick={remove}
|
||||
|
||||
@@ -95,6 +95,7 @@ export interface AnalogSensor {
|
||||
f: number;
|
||||
t: number;
|
||||
d: boolean; // deleted flag
|
||||
s: boolean; // system customization flag
|
||||
o_n?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user