mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 23:46:18 -05:00
Restoring JSON date conversion. Handling when psutil temperatures are None. Updating Toggle.onChange usage in Settings.
This commit is contained in:
parent
ddcc2c0674
commit
c97af1060b
5 changed files with 14 additions and 11 deletions
|
|
@ -144,7 +144,7 @@ export class Settings extends React.Component {
|
|||
label='Download on Startup'
|
||||
disabled={disabled || download_on_startup === null}
|
||||
checked={download_on_startup === true}
|
||||
onChange={(checked) => this.handleInputChange(null, 'download_on_startup', checked)}
|
||||
onChange={checked => this.handleInputChange(null, 'download_on_startup', checked)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
@ -153,7 +153,7 @@ export class Settings extends React.Component {
|
|||
label='WiFi Hotspot on Startup'
|
||||
disabled={disabled || hotspot_on_startup === null}
|
||||
checked={hotspot_on_startup === true}
|
||||
onChange={(checked) => this.handleInputChange(null, 'hotspot_on_startup', checked)}
|
||||
onChange={checked => this.handleInputChange(null, 'hotspot_on_startup', checked)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ export class Settings extends React.Component {
|
|||
label='CPU Power-save on Startup'
|
||||
disabled={disabled || throttle_on_startup === null}
|
||||
checked={throttle_on_startup === true}
|
||||
onChange={(checked) => this.handleInputChange(null, 'throttle_on_startup', checked)}
|
||||
onChange={checked => this.handleInputChange(null, 'throttle_on_startup', checked)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue