mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
parent
96895feea0
commit
c27e675152
2 changed files with 12 additions and 5 deletions
|
@ -1191,11 +1191,13 @@ Fields.TernaryChoices = class extends Fields.MultiChoice {
|
|||
|
||||
Fields.NullableChoices = class extends Fields.TernaryChoices {
|
||||
getChoices() {
|
||||
return [
|
||||
[true, translate('always')],
|
||||
[false, translate('never')],
|
||||
['null', translate('hidden')],
|
||||
]
|
||||
return (
|
||||
this.properties.choices || [
|
||||
[true, translate('always')],
|
||||
[false, translate('never')],
|
||||
['null', translate('hidden')],
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -447,6 +447,11 @@ export const SCHEMA = {
|
|||
label: translate('Display label'),
|
||||
inheritable: true,
|
||||
default: false,
|
||||
choices: [
|
||||
[true, translate('always')],
|
||||
[false, translate('never')],
|
||||
['null', translate('on hover')],
|
||||
],
|
||||
},
|
||||
slideshow: {
|
||||
type: Object,
|
||||
|
|
Loading…
Reference in a new issue