Fix ordering of loadshow dialog

This commit is contained in:
Matthew Stratford 2021-09-03 21:46:58 +01:00
parent bead964ebf
commit 9e09ffe3bb

View file

@ -37,34 +37,31 @@ export function LoadShowDialogue({ close }: { close: () => any }) {
}, [state]); }, [state]);
return ( return (
<> <>
<div
className="btn btn-outline-danger outline float-right"
onClick={() => {
sendBAPSicleChannel({
command: "CLEAR",
});
close();
}}
>
<FaTrashAlt size={15} /> Clear All Channels
</div>
<div
className="btn btn-outline-dark outline float-right mr-1"
onClick={() => {
sendBAPSicleChannel({
command: "RESETPLAYED",
weight: -1,
});
}}
>
<FaCircleNotch size={15} /> Mark All Unplayed
</div>
<h2>Load Show</h2>
<ResultsPlaceholder state={state} /> <ResultsPlaceholder state={state} />
{state !== "searching" && (
<>
<div
className="btn btn-outline-danger outline float-right"
onClick={() => {
sendBAPSicleChannel({
command: "CLEAR",
});
close();
}}
>
<FaTrashAlt size={15} /> Clear All Channels
</div>
<div
className="btn btn-outline-dark outline float-right mr-1"
onClick={() => {
sendBAPSicleChannel({
command: "RESETPLAYED",
weight: -1,
});
}}
>
<FaCircleNotch size={15} /> Mark All Unplayed
</div>
<h2>Load Show</h2>
</>
)}
<div className="loadshow-list"> <div className="loadshow-list">
{items.map((item, index) => ( {items.map((item, index) => (