add Developer Mode and value to API Call

This commit is contained in:
proddy
2024-10-20 15:01:08 +02:00
parent 685dec4c8e
commit bd08b7e0e4
2 changed files with 12 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ export interface Settings {
modbus_port: number;
modbus_max_clients: number;
modbus_timeout: number;
developer_mode: boolean;
}
export enum busConnectionStatus {
@@ -273,6 +274,7 @@ export interface APIcall {
device: string;
cmd: string;
id: number;
value?: string; // optional
}
export interface Action {

View File

@@ -686,6 +686,16 @@ const ApplicationSettings = () => {
<Typography sx={{ pb: 1, pt: 2 }} variant="h6" color="primary">
{LL.SPECIAL_FUNCTIONS()}
</Typography>
<BlockFormControlLabel
control={
<Checkbox
checked={data.developer_mode}
onChange={updateFormValue}
name="developer_mode"
/>
}
label={LL.DEVELOPER_MODE()}
/>
<BlockFormControlLabel
control={
<Checkbox
@@ -696,7 +706,6 @@ const ApplicationSettings = () => {
}
label={LL.HEATINGOFF()}
/>
<BlockFormControlLabel
control={
<Checkbox