mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-13 15:27:53 +02:00
Fix Aprilfoolsmode toggle
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user