mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-10-22 13:20:12 +00:00
Apply tag colors from settings
This commit is contained in:
@@ -12,6 +12,7 @@ import Api.Model.Person exposing (Person)
|
||||
import Comp.AddressForm
|
||||
import Comp.ContactField
|
||||
import Data.Flags exposing (Flags)
|
||||
import Data.UiSettings exposing (UiSettings)
|
||||
import Html exposing (..)
|
||||
import Html.Attributes exposing (..)
|
||||
import Html.Events exposing (onCheck, onInput)
|
||||
@@ -120,8 +121,8 @@ update flags msg model =
|
||||
( { model | concerning = not model.concerning }, Cmd.none )
|
||||
|
||||
|
||||
view : Model -> Html Msg
|
||||
view model =
|
||||
view : UiSettings -> Model -> Html Msg
|
||||
view settings model =
|
||||
div [ class "ui form" ]
|
||||
[ div
|
||||
[ classList
|
||||
@@ -152,11 +153,11 @@ view model =
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Address"
|
||||
]
|
||||
, Html.map AddressMsg (Comp.AddressForm.view model.addressModel)
|
||||
, Html.map AddressMsg (Comp.AddressForm.view settings model.addressModel)
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Contacts"
|
||||
]
|
||||
, Html.map ContactMsg (Comp.ContactField.view model.contactModel)
|
||||
, Html.map ContactMsg (Comp.ContactField.view settings model.contactModel)
|
||||
, h3 [ class "ui dividing header" ]
|
||||
[ text "Notes"
|
||||
]
|
||||
|
Reference in New Issue
Block a user