push fixes

This commit is contained in:
ashrafzarkanisala
2024-08-04 16:41:13 +03:00
parent 61a85a77b9
commit 3760329236
14 changed files with 236 additions and 135 deletions

View File

@ -42,6 +42,27 @@ mixin SceneLogicHelper {
);
return;
}
if (isAutomation == true && conditions.isEmpty) {
context.showCustomSnackbar(
message: 'Conditions Must not be empty!',
icon: const Icon(
Icons.error,
color: Colors.red,
),
);
return;
}
if (isAutomation == true && actions.isEmpty) {
context.showCustomSnackbar(
message: 'Actions Must not be empty!',
icon: const Icon(
Icons.error,
color: Colors.red,
),
);
return;
}
if (isAutomation) {
final createAutomationModel = CreateAutomationModel(