mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-09 14:14:54 +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;
|
||||
|
||||
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.marginRight = "10px";
|
||||
|
||||
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)";
|
||||
this.update_check_checkbox.checked = true;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user