mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +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,
|
routines: state.scenes,
|
||||||
loadingStates: state.loadingStates,
|
loadingStates: state.loadingStates,
|
||||||
loadingSceneId: state.loadingSceneId,
|
loadingSceneId: state.loadingSceneId,
|
||||||
|
disablePlayButton: false,
|
||||||
),
|
),
|
||||||
RoutinesExpansionTile(
|
RoutinesExpansionTile(
|
||||||
title: 'Automation',
|
title: 'Automation',
|
||||||
@ -90,6 +91,7 @@ class RoutinesView extends StatelessWidget {
|
|||||||
routines: state.automationList,
|
routines: state.automationList,
|
||||||
loadingStates: state.loadingStates,
|
loadingStates: state.loadingStates,
|
||||||
loadingSceneId: state.loadingSceneId,
|
loadingSceneId: state.loadingSceneId,
|
||||||
|
disablePlayButton: true,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 15),
|
const SizedBox(height: 15),
|
||||||
],
|
],
|
||||||
|
@ -11,6 +11,7 @@ class RoutinesExpansionTile extends StatelessWidget {
|
|||||||
required this.emptyRoutinesMessage,
|
required this.emptyRoutinesMessage,
|
||||||
required this.routines,
|
required this.routines,
|
||||||
required this.loadingStates,
|
required this.loadingStates,
|
||||||
|
required this.disablePlayButton,
|
||||||
this.loadingSceneId,
|
this.loadingSceneId,
|
||||||
});
|
});
|
||||||
final String title;
|
final String title;
|
||||||
@ -18,6 +19,7 @@ class RoutinesExpansionTile extends StatelessWidget {
|
|||||||
final List<ScenesModel> routines;
|
final List<ScenesModel> routines;
|
||||||
final Map<String, bool> loadingStates;
|
final Map<String, bool> loadingStates;
|
||||||
final String? loadingSceneId;
|
final String? loadingSceneId;
|
||||||
|
final bool disablePlayButton;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -43,7 +45,7 @@ class RoutinesExpansionTile extends StatelessWidget {
|
|||||||
child: SceneGrid(
|
child: SceneGrid(
|
||||||
scenes: routines,
|
scenes: routines,
|
||||||
loadingSceneId: loadingSceneId,
|
loadingSceneId: loadingSceneId,
|
||||||
disablePlayButton: false,
|
disablePlayButton: disablePlayButton,
|
||||||
loadingStates: loadingStates,
|
loadingStates: loadingStates,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user