Skip to content

Commit

Permalink
hide sorting menu
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Jan 25, 2021
1 parent 5edd944 commit 0eefabb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Search.elm
Expand Up @@ -587,7 +587,16 @@ view { toRoute, categoryName } title model viewSuccess viewBuckets outMsg =
RemoteData.Failure _ ->
"failure"
in
div [ class <| "search-page " ++ resultStatus ]
div
(List.append
[ class <| "search-page " ++ resultStatus ]
(if model.showSort then
[ onClick (outMsg ToggleSort) ]

else
[]
)
)
[ h1 [] title
, viewSearchInput outMsg categoryName model.channel model.query
, viewResult outMsg toRoute categoryName model viewSuccess viewBuckets
Expand Down

0 comments on commit 0eefabb

Please sign in to comment.