From 43bdae5156b531e8177c30e6804746dcfad34968 Mon Sep 17 00:00:00 2001 From: Correl Date: Thu, 15 Dec 2022 12:04:29 -0500 Subject: [PATCH] Remove owned checkbox and switch sort options --- www/src/App.elm | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/www/src/App.elm b/www/src/App.elm index 86f3939..a91d379 100644 --- a/www/src/App.elm +++ b/www/src/App.elm @@ -193,7 +193,7 @@ criteriaFromUrl : Url.Url -> Criteria criteriaFromUrl url = let emptyCriteria = - { query = "", sortBy = "rarity", ownedOnly = True } + { query = "", sortBy = "price", ownedOnly = True } in Url.Parser.parse parseUrl url |> Maybe.withDefault emptyCriteria @@ -431,16 +431,10 @@ searchBar model = , selected = Just model.criteria.sortBy , label = Input.labelLeft [ Font.color colors.text ] (E.text "Sort by") , options = - [ Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC" - , Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC" + [ Input.option "price" <| E.el [ Font.color colors.text ] <| E.text "Price DESC" + , Input.option "rarity" <| E.el [ Font.color colors.text ] <| E.text "Rarity DESC" ] } - , Input.checkbox [] - { onChange = UpdateCriteria << UpdateOwnedOnly - , icon = Input.defaultCheckbox - , checked = model.criteria.ownedOnly - , label = Input.labelRight [ Font.color colors.text ] (E.text "Owned only?") - } ] ]