autoplayout selector
add autoplayout selector
This commit is contained in:
commit
392db7a5da
2 changed files with 54 additions and 0 deletions
37
src/showplanner/AutoPlayoutModal.tsx
Normal file
37
src/showplanner/AutoPlayoutModal.tsx
Normal file
|
@ -0,0 +1,37 @@
|
|||
import React from "react";
|
||||
import { FaTimes, FaPlayCircle } from "react-icons/fa";
|
||||
import Modal from "react-modal";
|
||||
import { Button } from "reactstrap";
|
||||
|
||||
interface AutoPlayoutProps {
|
||||
isOpen: boolean;
|
||||
close: () => any;
|
||||
}
|
||||
|
||||
export function AutoPlayoutModal(props: AutoPlayoutProps) {
|
||||
return (
|
||||
<Modal isOpen={props.isOpen} onRequestClose={props.close}>
|
||||
<div>
|
||||
<h1 className="d-inline">
|
||||
<FaPlayCircle className="mx-2" size={30} />
|
||||
URY Automatic Playout
|
||||
</h1>
|
||||
<Button
|
||||
onClick={props.close}
|
||||
className="float-right pt-1"
|
||||
color="primary"
|
||||
>
|
||||
<FaTimes />
|
||||
</Button>
|
||||
</div>
|
||||
<hr />
|
||||
<iframe
|
||||
id="uploadIframe"
|
||||
src={process.env.REACT_APP_MYRADIO_NONAPI_BASE + "/NIPSWeb/playout/"}
|
||||
frameBorder="0"
|
||||
title="URY Automatic Playout"
|
||||
></iframe>
|
||||
<div></div>
|
||||
</Modal>
|
||||
);
|
||||
}
|
|
@ -9,6 +9,7 @@ import {
|
|||
FaMicrophone,
|
||||
FaTrash,
|
||||
FaUpload,
|
||||
FaPlayCircle,
|
||||
FaCircleNotch,
|
||||
FaPencilAlt,
|
||||
} from "react-icons/fa";
|
||||
|
@ -55,6 +56,7 @@ import { CombinedNavAlertBar } from "../navbar";
|
|||
import { OptionsMenu } from "../optionsMenu";
|
||||
import { WelcomeModal } from "./WelcomeModal";
|
||||
import { PisModal } from "./PISModal";
|
||||
import { AutoPlayoutModal } from "./AutoPlayoutModal";
|
||||
import { LibraryUploadModal } from "./LibraryUploadModal";
|
||||
import { ImporterModal } from "./ImporterModal";
|
||||
import "./channel.scss";
|
||||
|
@ -93,6 +95,7 @@ function LibraryColumn() {
|
|||
(state: RootState) => state.showplan
|
||||
);
|
||||
|
||||
const [autoPlayoutModal, setAutoPlayoutModal] = useState(false);
|
||||
const [showLibraryUploadModal, setShowLibraryModal] = useState(false);
|
||||
const [showImporterModal, setShowImporterModal] = useState(false);
|
||||
|
||||
|
@ -102,6 +105,10 @@ function LibraryColumn() {
|
|||
|
||||
return (
|
||||
<>
|
||||
<AutoPlayoutModal
|
||||
isOpen={autoPlayoutModal}
|
||||
close={() => setAutoPlayoutModal(false)}
|
||||
/>
|
||||
<LibraryUploadModal
|
||||
isOpen={showLibraryUploadModal}
|
||||
close={() => setShowLibraryModal(false)}
|
||||
|
@ -116,6 +123,16 @@ function LibraryColumn() {
|
|||
<FaBookOpen className="mx-2" size={28} />
|
||||
Libraries
|
||||
</h2>
|
||||
<Button
|
||||
className="mr-1"
|
||||
color="primary"
|
||||
title="Auto Playout"
|
||||
size="sm"
|
||||
outline={true}
|
||||
onClick={() => setAutoPlayoutModal(true)}
|
||||
>
|
||||
<FaPlayCircle /> Auto Playout
|
||||
</Button>
|
||||
<Button
|
||||
className="mr-1"
|
||||
color="primary"
|
||||
|
|
Loading…
Reference in a new issue