Skip to content

Commit

Permalink
chore(forms): remove duplicate NullableBoolean field
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Jan 8, 2025
1 parent 63e84d9 commit b6c8d64
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions umap/static/umap/js/modules/form/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,33 +389,6 @@ Fields.IntSelect = class extends Fields.Select {
}
}

Fields.NullableBoolean = class extends Fields.Select {
getOptions() {
return [
[undefined, 'inherit'],
[true, 'yes'],
[false, 'no'],
]
}

toJS() {
let value = this.value()
switch (value) {
case 'true':
case true:
value = true
break
case 'false':
case false:
value = false
break
default:
value = undefined
}
return value
}
}

Fields.EditableText = class extends BaseElement {
getTemplate() {
return `<span contentEditable class="${this.properties.className || ''}" data-ref=input></span>`
Expand Down

0 comments on commit b6c8d64

Please sign in to comment.