Fix Aprilfoolsmode toggle
This commit is contained in:
parent
a486b5bdfc
commit
251ec0a978
@ -112,8 +112,8 @@ export default function Settings({backendConnected, apiUri, settings, changeSett
|
|||||||
}
|
}
|
||||||
|
|
||||||
const SetAprilFoolsMode : ChangeEventHandler<HTMLInputElement> = (e) => {
|
const SetAprilFoolsMode : ChangeEventHandler<HTMLInputElement> = (e) => {
|
||||||
//console.info(`Updating AprilFoolsMode ${e.currentTarget.value}`);
|
//console.info(`Updating AprilFoolsMode ${e.target.checked}`);
|
||||||
postData(`${apiUri}/v2/Settings/AprilFoolsMode`, {value: e.currentTarget.value == "on"})
|
postData(`${apiUri}/v2/Settings/AprilFoolsMode`, {value: e.target.checked})
|
||||||
.then((json) => {
|
.then((json) => {
|
||||||
//console.info(`Successfully updated AprilFoolsMode ${e.currentTarget.value}`);
|
//console.info(`Successfully updated AprilFoolsMode ${e.currentTarget.value}`);
|
||||||
UpdateBackendSettings();
|
UpdateBackendSettings();
|
||||||
|
Loading…
Reference in New Issue
Block a user