mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
SP-1447, set the limit of gangs countdown to be 12 hours instead of 24 hours.
This commit is contained in:
@ -301,12 +301,13 @@ class OneGangSwitchHelper {
|
|||||||
DeviceFunctionData? selectedFunctionData,
|
DeviceFunctionData? selectedFunctionData,
|
||||||
String selectCode,
|
String selectCode,
|
||||||
) {
|
) {
|
||||||
|
const twelveHoursInSeconds = 43200.0;
|
||||||
final operationalValues = SwitchOperationalValue(
|
final operationalValues = SwitchOperationalValue(
|
||||||
icon: '',
|
icon: '',
|
||||||
description: "sec",
|
description: "sec",
|
||||||
value: 0.0,
|
value: 0.0,
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
maxValue: 86400,
|
maxValue: twelveHoursInSeconds,
|
||||||
stepValue: 1,
|
stepValue: 1,
|
||||||
);
|
);
|
||||||
return Slider(
|
return Slider(
|
||||||
|
@ -303,12 +303,13 @@ class ThreeGangSwitchHelper {
|
|||||||
DeviceFunctionData? selectedFunctionData,
|
DeviceFunctionData? selectedFunctionData,
|
||||||
String selectCode,
|
String selectCode,
|
||||||
) {
|
) {
|
||||||
|
const twelveHoursInSeconds = 43200.0;
|
||||||
final operationalValues = SwitchOperationalValue(
|
final operationalValues = SwitchOperationalValue(
|
||||||
icon: '',
|
icon: '',
|
||||||
description: "sec",
|
description: "sec",
|
||||||
value: 0.0,
|
value: 0.0,
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
maxValue: 86400,
|
maxValue: twelveHoursInSeconds,
|
||||||
stepValue: 1,
|
stepValue: 1,
|
||||||
);
|
);
|
||||||
return Slider(
|
return Slider(
|
||||||
|
@ -302,12 +302,13 @@ class TwoGangSwitchHelper {
|
|||||||
DeviceFunctionData? selectedFunctionData,
|
DeviceFunctionData? selectedFunctionData,
|
||||||
String selectCode,
|
String selectCode,
|
||||||
) {
|
) {
|
||||||
|
const twelveHoursInSeconds = 43200.0;
|
||||||
final operationalValues = SwitchOperationalValue(
|
final operationalValues = SwitchOperationalValue(
|
||||||
icon: '',
|
icon: '',
|
||||||
description: "sec",
|
description: "sec",
|
||||||
value: 0.0,
|
value: 0.0,
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
maxValue: 86400,
|
maxValue: twelveHoursInSeconds,
|
||||||
stepValue: 1,
|
stepValue: 1,
|
||||||
);
|
);
|
||||||
return Slider(
|
return Slider(
|
||||||
|
Reference in New Issue
Block a user