From 970f7ed16f18356b5b95ededf039f0bd69d03103 Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Tue, 8 Apr 2025 16:41:34 +0300 Subject: [PATCH] SP-1365 --- .../helper/dialog_helper/device_dialog_helper.dart | 9 ++++----- .../widgets/routine_dialogs/gateway/gateway_dialog.dart | 1 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/pages/routines/helper/dialog_helper/device_dialog_helper.dart b/lib/pages/routines/helper/dialog_helper/device_dialog_helper.dart index a94b6740..1fac903e 100644 --- a/lib/pages/routines/helper/dialog_helper/device_dialog_helper.dart +++ b/lib/pages/routines/helper/dialog_helper/device_dialog_helper.dart @@ -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'], diff --git a/lib/pages/routines/widgets/routine_dialogs/gateway/gateway_dialog.dart b/lib/pages/routines/widgets/routine_dialogs/gateway/gateway_dialog.dart index fe7379fc..b9638cd9 100644 --- a/lib/pages/routines/widgets/routine_dialogs/gateway/gateway_dialog.dart +++ b/lib/pages/routines/widgets/routine_dialogs/gateway/gateway_dialog.dart @@ -6,7 +6,6 @@ import 'package:syncrow_web/pages/routines/widgets/routine_dialogs/gateway/gatew final class GatewayHelper { static Future?> showGatewayFunctionsDialog({ - required String dialogType, required BuildContext context, required List functions, required String? uniqueCustomId,