feat: advance sitekey edit now allows modifying publication status

This commit is contained in:
Aravinth Manivannan
2023-06-30 16:48:53 +05:30
parent 6834e555d8
commit 22edb04ce2
5 changed files with 48 additions and 23 deletions

View File

@@ -47,11 +47,19 @@ const submit = async (e: Event) => {
const key = BTN.get().dataset.sitekey;
const PUBLISH_BENCHMARKS = <HTMLInputElement>(
Add.FORM.querySelector("#publish_benchmarks")
);
const payload = {
levels,
duration,
description,
key,
publish_benchmarks: PUBLISH_BENCHMARKS.checked,
};
console.debug(`[form submition] json payload: ${JSON.stringify(payload)}`);