fix: display back help button in switch fields

cf #2615
This commit is contained in:
Yohan Boniface 2025-04-10 20:24:35 +02:00
parent dc35e7df6d
commit 7348f0bf4f

View file

@ -925,7 +925,8 @@ Fields.Url = class extends Fields.Input {
Fields.Switch = class extends Fields.CheckBox { Fields.Switch = class extends Fields.CheckBox {
getTemplate() { getTemplate() {
const label = this.properties.label const label = this.properties.label
return `${super.getTemplate()}<label title="${label}" for="${this.id}" data-ref=customLabel>${label}</label>` const help = this.properties.helpEntries?.join() || ''
return `${super.getTemplate()}<label title="${label}" for="${this.id}" data-ref=customLabel data-help="${help}">${label}</label>`
} }
build() { build() {