Fix bug decode, make date optional
This commit is contained in:
parent
383dd93637
commit
56749e29c4
|
@ -247,4 +247,4 @@ decodeVideo url =
|
|||
Decode.map3 (\x y -> Video x url y)
|
||||
(Decode.field "title" Decode.string)
|
||||
(Decode.map Basics.round (Decode.field "duration" Decode.float))
|
||||
(Decode.nullable (Decode.field "date" Iso8601.decoder))
|
||||
(Decode.maybe (Decode.field "date" Iso8601.decoder))
|
||||
|
|
|
@ -284,6 +284,7 @@ videoView zone playlist video =
|
|||
[ Element.column
|
||||
[ Element.width (Element.fillPortion 2)
|
||||
, Element.spacing 10
|
||||
, Element.alignTop
|
||||
]
|
||||
[ Keyed.el
|
||||
[ Element.width Element.fill
|
||||
|
|
Loading…
Reference in New Issue