Skip to content
Permalink
Browse files

Hide details when clicked on result row again

fixes #11
  • Loading branch information
garbas committed May 11, 2020
1 parent 3918246 commit aaa0351f763304855df67fc4f8b7a3a4d75c07ca
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/ElasticSearch.elm
@@ -126,7 +126,14 @@ update path navKey msg model =
)

ShowDetails selected ->
( { model | showDetailsFor = Just selected }
( { model
| showDetailsFor =
if model.showDetailsFor == Just selected then
Nothing

else
Just selected
}
, Cmd.none
)

0 comments on commit aaa0351

Please sign in to comment.
You can’t perform that action at this time.