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 =
|
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'],
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user