From ce1c41e4148d2e3341883f96023369c0f6bedc71 Mon Sep 17 00:00:00 2001 From: Michael Grace Date: Sat, 15 May 2021 21:16:35 +0100 Subject: [PATCH 1/3] Fix Mark Unplayed Bug --- src/showplanner/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index 3f6fb7f..187b82a 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -243,8 +243,11 @@ const Showplanner: React.FC = function() { weight: data.index, }); } - async function onCtxUnPlayedClick(e: any, data: { id: string }) { - dispatch(setItemPlayed(data.id, false)); + async function onCtxUnPlayedClick( + e: any, + data: { id: string; column: number } + ) { + dispatch(setItemPlayed(data.id, false, data.column)); } // Add support for reloading the show plan from the iFrames. From ab138ab052d81ded45fea8591af7a2e7ac2ee828 Mon Sep 17 00:00:00 2001 From: Michael Grace Date: Wed, 26 May 2021 20:16:39 +0100 Subject: [PATCH 2/3] close modal on show plan load --- src/navbar/loadshow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/navbar/loadshow.tsx b/src/navbar/loadshow.tsx index 079cc9f..e51e6c9 100644 --- a/src/navbar/loadshow.tsx +++ b/src/navbar/loadshow.tsx @@ -13,7 +13,7 @@ import { sendBAPSicleChannel } from "../bapsicle"; type searchingStateEnum = "searching" | "results" | "no-results" | "error"; -export function LoadShowDialogue(close: any) { +export function LoadShowDialogue({ close }: { close: () => any }) { const [items, setItems] = useState([]); const [state, setState] = useState("searching"); From 85338949accff2da7b5bcc65c9c6db2d9153ec2a Mon Sep 17 00:00:00 2001 From: Michael Grace Date: Wed, 26 May 2021 20:17:59 +0100 Subject: [PATCH 3/3] actually close it --- src/navbar/loadshow.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/navbar/loadshow.tsx b/src/navbar/loadshow.tsx index e51e6c9..d316e79 100644 --- a/src/navbar/loadshow.tsx +++ b/src/navbar/loadshow.tsx @@ -46,6 +46,7 @@ export function LoadShowDialogue({ close }: { close: () => any }) { sendBAPSicleChannel({ command: "CLEAR", }); + close(); }} > Clear All Channels