add is_system to analog sensor so internal sensors cannot be removed

This commit is contained in:
proddy
2025-11-08 16:30:40 +01:00
parent 3fd05c8eb7
commit dc838639b2
7 changed files with 62 additions and 43 deletions

View File

@@ -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}

View File

@@ -95,6 +95,7 @@ export interface AnalogSensor {
f: number;
t: number;
d: boolean; // deleted flag
s: boolean; // system customization flag
o_n?: string;
}