mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Allow person to be correspondent, concerning or both
This commit is contained in:
@ -32,6 +32,7 @@ import Data.DropdownStyle
|
||||
import Data.Fields
|
||||
import Data.Flags exposing (Flags)
|
||||
import Data.Icons as Icons
|
||||
import Data.PersonUse
|
||||
import Data.UiSettings exposing (UiSettings)
|
||||
import DatePicker exposing (DatePicker)
|
||||
import Html exposing (..)
|
||||
@ -429,14 +430,14 @@ update flags msg model =
|
||||
|
||||
GetPersonResp (Ok ps) ->
|
||||
let
|
||||
( conc, corr ) =
|
||||
List.partition .concerning ps.items
|
||||
{ concerning, correspondent } =
|
||||
Data.PersonUse.spanPersonList ps.items
|
||||
|
||||
concRefs =
|
||||
List.map (\e -> IdName e.id e.name) conc
|
||||
List.map (\e -> IdName e.id e.name) concerning
|
||||
|
||||
corrRefs =
|
||||
List.map (\e -> IdName e.id e.name) corr
|
||||
List.map (\e -> IdName e.id e.name) correspondent
|
||||
|
||||
res1 =
|
||||
update flags (CorrPersonMsg (Comp.Dropdown.SetOptions corrRefs)) model
|
||||
|
Reference in New Issue
Block a user