mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
SP-1365
This commit is contained in:
@ -50,10 +50,10 @@ class DeviceDialogHelper {
|
||||
final deviceSelectedFunctions =
|
||||
routineBloc.state.selectedFunctions[data['uniqueCustomId']] ?? [];
|
||||
|
||||
if (removeComparetors && data['productType'] != 'WPS') {
|
||||
//remove the current temp function in the 'if container'
|
||||
functions.removeAt(3);
|
||||
}
|
||||
// if (removeComparetors && data['productType'] != 'WPS') {
|
||||
// //remove the current temp function in the 'if container'
|
||||
// functions.removeAt(3);
|
||||
// }
|
||||
|
||||
switch (productType) {
|
||||
case 'AC':
|
||||
@ -101,7 +101,6 @@ class DeviceDialogHelper {
|
||||
removeComparetors: removeComparetors);
|
||||
case 'GW':
|
||||
return GatewayHelper.showGatewayFunctionsDialog(
|
||||
dialogType: dialogType,
|
||||
context: context,
|
||||
functions: functions,
|
||||
uniqueCustomId: data['uniqueCustomId'],
|
||||
|
@ -6,7 +6,6 @@ import 'package:syncrow_web/pages/routines/widgets/routine_dialogs/gateway/gatew
|
||||
|
||||
final class GatewayHelper {
|
||||
static Future<Map<String, dynamic>?> showGatewayFunctionsDialog({
|
||||
required String dialogType,
|
||||
required BuildContext context,
|
||||
required List<DeviceFunction> functions,
|
||||
required String? uniqueCustomId,
|
||||
|
Reference in New Issue
Block a user