Adding download window which can prevent downloads from running at unwanted times.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

This commit is contained in:
Roland 2026-03-12 20:10:57 -06:00
parent 4579562be5
commit 35994bd363
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
10 changed files with 395 additions and 57 deletions

View file

@ -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);