From b6c8d64c476825bd1c3a803f51e36b5dee94ffee Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 8 Jan 2025 16:15:27 +0100 Subject: [PATCH] chore(forms): remove duplicate NullableBoolean field --- umap/static/umap/js/modules/form/fields.js | 27 ---------------------- 1 file changed, 27 deletions(-) diff --git a/umap/static/umap/js/modules/form/fields.js b/umap/static/umap/js/modules/form/fields.js index 29fc03b7..ea0740a9 100644 --- a/umap/static/umap/js/modules/form/fields.js +++ b/umap/static/umap/js/modules/form/fields.js @@ -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 ``