Make search query default to show
if given (#561)
This allows for shorter permalinks for displaying a given package.
This commit is contained in:
parent
5bbe885b62
commit
cf23c13a17
|
@ -307,6 +307,9 @@ init args defaultNixOSChannel nixosChannels maybeModel =
|
||||||
, query =
|
, query =
|
||||||
args.query
|
args.query
|
||||||
|> Maybe.andThen Route.SearchQuery.searchQueryToString
|
|> Maybe.andThen Route.SearchQuery.searchQueryToString
|
||||||
|
|> \ x -> case x of
|
||||||
|
Just q -> Just q
|
||||||
|
Nothing -> args.show
|
||||||
, result = getField .result RemoteData.NotAsked
|
, result = getField .result RemoteData.NotAsked
|
||||||
, show = args.show
|
, show = args.show
|
||||||
, from =
|
, from =
|
||||||
|
|
Loading…
Reference in a new issue