mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-05 10:59:33 +00:00
Fix initialising date fields
This commit is contained in:
parent
cdcc8210fe
commit
44459aecd0
@ -260,7 +260,7 @@ update msg model =
|
|||||||
in
|
in
|
||||||
UpdateResult model_ Cmd.none (Value value)
|
UpdateResult model_ Cmd.none (Value value)
|
||||||
|
|
||||||
( DateMsg lm, DateField _ picker ) ->
|
( DateMsg lm, DateField old picker ) ->
|
||||||
let
|
let
|
||||||
( picker_, event ) =
|
( picker_, event ) =
|
||||||
Comp.DatePicker.updateDefault lm picker
|
Comp.DatePicker.updateDefault lm picker
|
||||||
@ -271,10 +271,10 @@ update msg model =
|
|||||||
( Just date, Value (Date.toIsoString date) )
|
( Just date, Value (Date.toIsoString date) )
|
||||||
|
|
||||||
DatePicker.None ->
|
DatePicker.None ->
|
||||||
( Nothing, NoResult )
|
( old, NoResult )
|
||||||
|
|
||||||
DatePicker.FailedInput _ ->
|
DatePicker.FailedInput _ ->
|
||||||
( Nothing, NoResult )
|
( old, NoResult )
|
||||||
|
|
||||||
model_ =
|
model_ =
|
||||||
{ model | fieldModel = DateField newDate picker_ }
|
{ model | fieldModel = DateField newDate picker_ }
|
||||||
|
@ -247,6 +247,7 @@ update key flags inav settings msg model =
|
|||||||
, res6.cmd
|
, res6.cmd
|
||||||
, res7.cmd
|
, res7.cmd
|
||||||
, res8.cmd
|
, res8.cmd
|
||||||
|
, res9.cmd
|
||||||
, getOptions flags
|
, getOptions flags
|
||||||
, proposalCmd
|
, proposalCmd
|
||||||
, Api.getSentMails flags item.id SentMailsResp
|
, Api.getSentMails flags item.id SentMailsResp
|
||||||
@ -262,6 +263,7 @@ update key flags inav settings msg model =
|
|||||||
, res6.sub
|
, res6.sub
|
||||||
, res7.sub
|
, res7.sub
|
||||||
, res8.sub
|
, res8.sub
|
||||||
|
, res9.sub
|
||||||
]
|
]
|
||||||
, linkTarget = Comp.LinkTarget.LinkNone
|
, linkTarget = Comp.LinkTarget.LinkNone
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user