mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Use same limit for searchable dropdowns
This commit is contained in:
parent
a3b482fa13
commit
80131522de
@ -88,7 +88,7 @@ makeSingle :
|
|||||||
makeSingle opts =
|
makeSingle opts =
|
||||||
makeModel
|
makeModel
|
||||||
{ multiple = False
|
{ multiple = False
|
||||||
, searchable = \n -> n > 8
|
, searchable = \n -> n > 5
|
||||||
, makeOption = opts.makeOption
|
, makeOption = opts.makeOption
|
||||||
, labelColor = \_ -> \_ -> ""
|
, labelColor = \_ -> \_ -> ""
|
||||||
, placeholder = opts.placeholder
|
, placeholder = opts.placeholder
|
||||||
@ -126,7 +126,7 @@ makeMultiple :
|
|||||||
makeMultiple opts =
|
makeMultiple opts =
|
||||||
makeModel
|
makeModel
|
||||||
{ multiple = True
|
{ multiple = True
|
||||||
, searchable = \n -> n > 8
|
, searchable = \n -> n > 5
|
||||||
, makeOption = opts.makeOption
|
, makeOption = opts.makeOption
|
||||||
, labelColor = opts.labelColor
|
, labelColor = opts.labelColor
|
||||||
, placeholder = ""
|
, placeholder = ""
|
||||||
|
@ -9,7 +9,7 @@ makeDropdownModel : Comp.Dropdown.Model Tag
|
|||||||
makeDropdownModel =
|
makeDropdownModel =
|
||||||
Comp.Dropdown.makeModel
|
Comp.Dropdown.makeModel
|
||||||
{ multiple = True
|
{ multiple = True
|
||||||
, searchable = \n -> n > 4
|
, searchable = \n -> n > 5
|
||||||
, makeOption = \tag -> { value = tag.id, text = tag.name }
|
, makeOption = \tag -> { value = tag.id, text = tag.name }
|
||||||
, labelColor =
|
, labelColor =
|
||||||
\tag ->
|
\tag ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user