Skip to content

Commit

Permalink
Merge pull request #300 from UniversityRadioYork/colin-enter-timeslot-id
Browse files Browse the repository at this point in the history
BAPSicle: Add button to open showplan from ID
  • Loading branch information
ColinRoitt authored Oct 4, 2024
2 parents 8b7f59c + 226b367 commit d9fe3c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/navbar/loadshow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
FaCircleNotch,
FaCog,
FaDownload,
FaKeyboard,
FaSearch,
FaTimesCircle,
FaTrashAlt,
Expand Down Expand Up @@ -59,6 +60,17 @@ export function LoadShowDialogue({ close }: { close: () => any }) {
>
<FaCircleNotch size={15} /> Mark All Unplayed
</div>
<div
className="btn btn-outline-dark outline float-right mr-1"
onClick={() => {
sendBAPSicleChannel({
command: "GETPLAN",
timeslotId: window.prompt("Enter timeslot ID"),
});
}}
>
<FaKeyboard size={15} /> Enter Show ID
</div>

<h2>Load Show</h2>
<ResultsPlaceholder state={state} />
Expand Down

0 comments on commit d9fe3c2

Please sign in to comment.