From 9e09ffe3bbb18b7b703486f5c9d5a01da9ccc05b Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Fri, 3 Sep 2021 21:46:58 +0100 Subject: [PATCH] Fix ordering of loadshow dialog --- src/navbar/loadshow.tsx | 51 +++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/src/navbar/loadshow.tsx b/src/navbar/loadshow.tsx index 7a8f17f..6fa6c64 100644 --- a/src/navbar/loadshow.tsx +++ b/src/navbar/loadshow.tsx @@ -37,34 +37,31 @@ export function LoadShowDialogue({ close }: { close: () => any }) { }, [state]); return ( <> +
{ + sendBAPSicleChannel({ + command: "CLEAR", + }); + close(); + }} + > + Clear All Channels +
+
{ + sendBAPSicleChannel({ + command: "RESETPLAYED", + weight: -1, + }); + }} + > + Mark All Unplayed +
+ +

Load Show

- {state !== "searching" && ( - <> -
{ - sendBAPSicleChannel({ - command: "CLEAR", - }); - close(); - }} - > - Clear All Channels -
-
{ - sendBAPSicleChannel({ - command: "RESETPLAYED", - weight: -1, - }); - }} - > - Mark All Unplayed -
-

Load Show

- - )}
{items.map((item, index) => (