mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-10-16 21:01:51 +00:00
Extend dropdown to display additional option info
Use this to display folder information when setting the folder on an item.
This commit is contained in:
@@ -129,7 +129,7 @@ init flags =
|
||||
( { settings = Api.Model.ScanMailboxSettings.empty
|
||||
, connectionModel =
|
||||
Comp.Dropdown.makeSingle
|
||||
{ makeOption = \a -> { value = a, text = a }
|
||||
{ makeOption = \a -> { value = a, text = a, additional = "" }
|
||||
, placeholder = "Select connection..."
|
||||
}
|
||||
, enabled = False
|
||||
@@ -260,7 +260,7 @@ update flags msg model =
|
||||
|
||||
cm =
|
||||
Comp.Dropdown.makeSingleList
|
||||
{ makeOption = \a -> { value = a, text = a }
|
||||
{ makeOption = \a -> { value = a, text = a, additional = "" }
|
||||
, placeholder = "Select Connection..."
|
||||
, options = names
|
||||
, selected = List.head names
|
||||
|
Reference in New Issue
Block a user