Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hide details when clicked on result row again
fixes #11
  • Loading branch information
garbas committed May 11, 2020
1 parent 3918246 commit aaa0351
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ElasticSearch.elm
Expand Up @@ -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
)

Expand Down

0 comments on commit aaa0351

Please sign in to comment.