mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding toggle to prevent downloads from starting when cookies are locked.
This commit is contained in:
parent
9b3a03012e
commit
ae7ab1981f
8 changed files with 36 additions and 3 deletions
|
|
@ -452,6 +452,7 @@ export function SettingsPage() {
|
|||
// Only these settings can be changed on the SettingsPage.
|
||||
archive_destination: settings.archive_destination,
|
||||
download_on_startup: settings.download_on_startup,
|
||||
require_cookies_unlocked: settings.require_cookies_unlocked,
|
||||
download_timeout: settings.download_timeout,
|
||||
download_wait: settings.download_wait,
|
||||
download_window_start: settings.download_window_start || '',
|
||||
|
|
@ -672,6 +673,19 @@ export function SettingsPage() {
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div style={{margin: '0.5em'}}>
|
||||
<Toggle
|
||||
label={<>
|
||||
Do not download while cookies are locked
|
||||
<InfoPopup
|
||||
content='When enabled, downloads will wait until cookies are unlocked. If no cookies are configured, downloads proceed normally.'/>
|
||||
</>}
|
||||
disabled={disabled || state.require_cookies_unlocked === null}
|
||||
checked={state.require_cookies_unlocked === true}
|
||||
onChange={checked => handleInputChange(null, 'require_cookies_unlocked', checked)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Form.Group inline>
|
||||
<Form.Input
|
||||
label={<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue