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