Fix label's for attribute for plugin-specific settings (#8030)

This commit is contained in:
Jakub Kuczys
2023-06-10 10:28:29 +03:00
committed by GitHub
parent 63544948db
commit 5f953df881
+1 -1
View File
@@ -142,7 +142,7 @@ function init (client, serverSettings, $) {
const id = e.plugin.name + "-" + p.id;
const label = p.label;
if (p.type == 'boolean') {
const html = $(`<dd><input type="checkbox" id="${id}" value="true" /><label for="${id}r">` + translate(label) + `</label></dd>`);
const html = $(`<dd><input type="checkbox" id="${id}" value="true" /><label for="${id}">` + translate(label) + `</label></dd>`);
dl.append(html);
const settingsBase = settings.extendedSettings[e.plugin.name];
if (settingsBase[p.id] == true) {