mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
feat: add 'for' attribue to label to connect to checkbox
This commit is contained in:
parent
97e5b4b32c
commit
5540e32afb
@ -397,12 +397,12 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
let self = this;
|
let self = this;
|
||||||
|
|
||||||
this.local_mode_checkbox = $el("input",{type:'checkbox', id:"use_local_db"},[])
|
this.local_mode_checkbox = $el("input",{type:'checkbox', id:"use_local_db"},[])
|
||||||
const checkbox_text = $el("label",{},[" Use local DB"])
|
const checkbox_text = $el("label",{for: "use_local_db"},[" Use local DB"])
|
||||||
checkbox_text.style.color = "var(--fg-color)";
|
checkbox_text.style.color = "var(--fg-color)";
|
||||||
checkbox_text.style.marginRight = "10px";
|
checkbox_text.style.marginRight = "10px";
|
||||||
|
|
||||||
this.update_check_checkbox = $el("input",{type:'checkbox', id:"skip_update_check"},[])
|
this.update_check_checkbox = $el("input",{type:'checkbox', id:"skip_update_check"},[])
|
||||||
const uc_checkbox_text = $el("label",{},[" Skip update check"])
|
const uc_checkbox_text = $el("label",{for:"skip_update_check"},[" Skip update check"])
|
||||||
uc_checkbox_text.style.color = "var(--fg-color)";
|
uc_checkbox_text.style.color = "var(--fg-color)";
|
||||||
this.update_check_checkbox.checked = true;
|
this.update_check_checkbox.checked = true;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user