Forgot to remove active day when clicking All Days

This commit is contained in:
Vidir Valberg Gudmundsson 2017-07-17 21:52:54 +02:00
parent 540c8c1156
commit d2691e1802
3 changed files with 5 additions and 0 deletions

View file

@ -14,6 +14,7 @@ type Msg
= NoOp
| WebSocketPayload String
| MakeActiveday Day
| RemoveActiveDay
| ToggleEventTypeFilter EventType
| ToggleEventLocationFilter EventLocation
| OnLocationChange Location

View file

@ -62,6 +62,9 @@ update msg model =
MakeActiveday day ->
{ model | activeDay = Just day } ! []
RemoveActiveDay ->
{ model | activeDay = Nothing } ! []
ToggleEventTypeFilter eventType ->
let
eventTypesFilter =

View file

@ -34,6 +34,7 @@ dayPicker model =
, ( "btn-primary", isAllDaysActive )
]
, href ("#")
, onClick (RemoveActiveDay)
]
[ text "All Days"
]