Merge pull request #208 from UniversityRadioYork/mstratford/played

Add a mark as played button.
This commit is contained in:
Marks Polakovs 2021-02-08 20:37:38 +00:00 committed by GitHub
commit ba4e6942cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,7 @@ import {
FaCircleNotch,
FaPencilAlt,
FaHeadphonesAlt,
FaCircle,
} from "react-icons/fa";
import { MYRADIO_NON_API_BASE, TimeslotItem } from "../api";
@ -234,6 +235,15 @@ const Showplanner: React.FC<{ timeslotId: number }> = function({ timeslotId }) {
>
<FaCircleNotch /> Mark Unplayed
</CtxMenuItem>
<CtxMenuItem
onClick={(args) =>
dispatch(
setItemPlayed({ itemId: (args.props as any).id, played: true })
)
}
>
<FaCircle /> Mark Played
</CtxMenuItem>
<CtxMenuItem
onClick={(args) => {
dispatch(