mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -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
|
|
@ -566,7 +566,7 @@ export function HotspotToggle() {
|
|||
label='WiFi Hotspot'
|
||||
disabled={disabled}
|
||||
checked={on === true}
|
||||
onChange={(e, data) => setHotspot(data.checked)}
|
||||
onChange={checked => setHotspot(checked)}
|
||||
/>
|
||||
{disabled && <HelpPopup content='Hotspot is not supported on this server'/>}
|
||||
</div>);
|
||||
|
|
@ -580,7 +580,7 @@ export function ThrottleToggle() {
|
|||
label='CPU Power-save'
|
||||
disabled={disabled}
|
||||
checked={on === true}
|
||||
onChange={(e, data) => setThrottle(data.checked)}
|
||||
onChange={checked => setThrottle(checked)}
|
||||
/>
|
||||
{disabled && <HelpPopup content='CPU Power-save is not supported on this server'/>}
|
||||
</div>);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue