mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 01:46:18 -05:00
Adding download window which can prevent downloads from running at unwanted times.
This commit is contained in:
parent
4579562be5
commit
35994bd363
10 changed files with 395 additions and 57 deletions
|
|
@ -591,6 +591,17 @@ export function WROLModeMessage({content}) {
|
|||
return null;
|
||||
}
|
||||
|
||||
export function DownloadWindowMessage() {
|
||||
const {status} = React.useContext(StatusContext);
|
||||
const downloads = status ? status.downloads : null;
|
||||
|
||||
if (downloads && downloads.outside_download_window) {
|
||||
return <Message icon='clock outline' header='Outside Download Window'
|
||||
content='Downloads are paused because the current time is outside the configured download window.'/>
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export function CookiesUnlockModal({open, onClose, onSuccess}) {
|
||||
const [password, setPassword] = useState('');
|
||||
const [submitting, setSubmitting] = useState(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue