mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
when use THEN dialog type Funtions is the word but hen if it should be condition
This commit is contained in:
@ -16,9 +16,10 @@ class GatewayDialog extends StatefulWidget {
|
||||
required this.functions,
|
||||
required this.deviceSelectedFunctions,
|
||||
required this.device,
|
||||
required this.dialogType,
|
||||
super.key,
|
||||
});
|
||||
|
||||
final String dialogType;
|
||||
final String? uniqueCustomId;
|
||||
final List<DeviceFunction> functions;
|
||||
final List<DeviceFunctionData> deviceSelectedFunctions;
|
||||
@ -55,7 +56,9 @@ class _GatewayDialogState extends State<GatewayDialog> {
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const DialogHeader('Gateway Conditions'),
|
||||
DialogHeader(widget.dialogType == 'THEN'
|
||||
? 'Gateway Functions'
|
||||
: 'Gateway Conditions'),
|
||||
Expanded(child: _buildMainContent(context, state)),
|
||||
_buildDialogFooter(context, state),
|
||||
],
|
||||
|
Reference in New Issue
Block a user