mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 10:35:10 +00:00
Fixed routines bug where it threw 404 because of a developer error.
This commit is contained in:
@ -82,6 +82,7 @@ class RoutinesView extends StatelessWidget {
|
||||
routines: state.scenes,
|
||||
loadingStates: state.loadingStates,
|
||||
loadingSceneId: state.loadingSceneId,
|
||||
disablePlayButton: false,
|
||||
),
|
||||
RoutinesExpansionTile(
|
||||
title: 'Automation',
|
||||
@ -90,6 +91,7 @@ class RoutinesView extends StatelessWidget {
|
||||
routines: state.automationList,
|
||||
loadingStates: state.loadingStates,
|
||||
loadingSceneId: state.loadingSceneId,
|
||||
disablePlayButton: true,
|
||||
),
|
||||
const SizedBox(height: 15),
|
||||
],
|
||||
|
@ -11,6 +11,7 @@ class RoutinesExpansionTile extends StatelessWidget {
|
||||
required this.emptyRoutinesMessage,
|
||||
required this.routines,
|
||||
required this.loadingStates,
|
||||
required this.disablePlayButton,
|
||||
this.loadingSceneId,
|
||||
});
|
||||
final String title;
|
||||
@ -18,6 +19,7 @@ class RoutinesExpansionTile extends StatelessWidget {
|
||||
final List<ScenesModel> routines;
|
||||
final Map<String, bool> loadingStates;
|
||||
final String? loadingSceneId;
|
||||
final bool disablePlayButton;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@ -43,7 +45,7 @@ class RoutinesExpansionTile extends StatelessWidget {
|
||||
child: SceneGrid(
|
||||
scenes: routines,
|
||||
loadingSceneId: loadingSceneId,
|
||||
disablePlayButton: false,
|
||||
disablePlayButton: disablePlayButton,
|
||||
loadingStates: loadingStates,
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user