Testing that nearly-empty configs are ignored on import. Adding setting to disable automatic upgrade checking.

This commit is contained in:
Roland 2025-12-06 14:47:52 -07:00 • committed by lrnselfreliance
parent 3e3ab04f4d
commit 5b29144d70
16 changed files with 1180 additions and 13 deletions

View file

@ -318,6 +318,7 @@ export function SettingsPage() {
hotspot_on_startup: settings.hotspot_on_startup,
hotspot_password: settings.hotspot_password,
hotspot_ssid: settings.hotspot_ssid,
check_for_upgrades: settings.check_for_upgrades,
ignore_outdated_zims: settings.ignore_outdated_zims,
log_level: fromApiLogLevel(settings.log_level),
map_destination: settings.map_destination,
@ -398,6 +399,15 @@ export function SettingsPage() {
/>
</div>
<div style={{margin: '0.5em'}}>
<Toggle
label='Check for upgrades hourly'
disabled={disabled || state.check_for_upgrades === null}
checked={state.check_for_upgrades === true}
onChange={checked => handleInputChange(null, 'check_for_upgrades', checked)}
/>
</div>
<FormGroup inline>
<FormInput
label={<>