Add a mark as played button.
This commit is contained in:
parent
7a7a401114
commit
05cecd77e1
1 changed files with 10 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue