This commit is contained in:
Faris Armoush
2025-04-08 16:41:34 +03:00
parent 006bd4c8ae
commit 970f7ed16f
2 changed files with 4 additions and 6 deletions

View File

@ -50,10 +50,10 @@ class DeviceDialogHelper {
final deviceSelectedFunctions = final deviceSelectedFunctions =
routineBloc.state.selectedFunctions[data['uniqueCustomId']] ?? []; routineBloc.state.selectedFunctions[data['uniqueCustomId']] ?? [];
if (removeComparetors && data['productType'] != 'WPS') { // if (removeComparetors && data['productType'] != 'WPS') {
//remove the current temp function in the 'if container' // //remove the current temp function in the 'if container'
functions.removeAt(3); // functions.removeAt(3);
} // }
switch (productType) { switch (productType) {
case 'AC': case 'AC':
@ -101,7 +101,6 @@ class DeviceDialogHelper {
removeComparetors: removeComparetors); removeComparetors: removeComparetors);
case 'GW': case 'GW':
return GatewayHelper.showGatewayFunctionsDialog( return GatewayHelper.showGatewayFunctionsDialog(
dialogType: dialogType,
context: context, context: context,
functions: functions, functions: functions,
uniqueCustomId: data['uniqueCustomId'], uniqueCustomId: data['uniqueCustomId'],

View File

@ -6,7 +6,6 @@ import 'package:syncrow_web/pages/routines/widgets/routine_dialogs/gateway/gatew
final class GatewayHelper { final class GatewayHelper {
static Future<Map<String, dynamic>?> showGatewayFunctionsDialog({ static Future<Map<String, dynamic>?> showGatewayFunctionsDialog({
required String dialogType,
required BuildContext context, required BuildContext context,
required List<DeviceFunction> functions, required List<DeviceFunction> functions,
required String? uniqueCustomId, required String? uniqueCustomId,