Forgot to remove active day when clicking All Days
This commit is contained in:
parent
540c8c1156
commit
d2691e1802
|
@ -14,6 +14,7 @@ type Msg
|
|||
= NoOp
|
||||
| WebSocketPayload String
|
||||
| MakeActiveday Day
|
||||
| RemoveActiveDay
|
||||
| ToggleEventTypeFilter EventType
|
||||
| ToggleEventLocationFilter EventLocation
|
||||
| OnLocationChange Location
|
||||
|
|
|
@ -62,6 +62,9 @@ update msg model =
|
|||
MakeActiveday day ->
|
||||
{ model | activeDay = Just day } ! []
|
||||
|
||||
RemoveActiveDay ->
|
||||
{ model | activeDay = Nothing } ! []
|
||||
|
||||
ToggleEventTypeFilter eventType ->
|
||||
let
|
||||
eventTypesFilter =
|
||||
|
|
|
@ -34,6 +34,7 @@ dayPicker model =
|
|||
, ( "btn-primary", isAllDaysActive )
|
||||
]
|
||||
, href ("#")
|
||||
, onClick (RemoveActiveDay)
|
||||
]
|
||||
[ text "All Days"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue