From f25b287926eb6b537bacc5a73519ff82b68f97fe Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Fri, 8 May 2020 16:56:14 +0200 Subject: [PATCH] make request to the right search page, fixes #4 (#7) --- src/Main.elm | 4 ++-- src/Page/Options.elm | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Main.elm b/src/Main.elm index 30e5c42..55652a4 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -117,10 +117,10 @@ submitQuery old ( new, cmd ) = ( new , Cmd.batch [ cmd - , Page.Packages.makeRequest + , makeRequest new.elasticsearch (Maybe.withDefault "" newModel.query) - |> Cmd.map PackagesMsg + |> Cmd.map msg ] ) in diff --git a/src/Page/Options.elm b/src/Page/Options.elm index 6ab6fad..b31f536 100644 --- a/src/Page/Options.elm +++ b/src/Page/Options.elm @@ -146,7 +146,6 @@ makeRequest : makeRequest options query = ElasticSearch.makeRequest "option_name" - -- TODO: add support for different channels "nixos-unstable-options" decodeResultItemSource options