diff options
author | Yorhel <git@yorhel.nl> | 2020-11-21 14:59:56 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-11-21 14:59:56 +0100 |
commit | db80637a6e96bf9eb15c37a483dbd2ddc439994f (patch) | |
tree | 471f08ffb93424113f4a96413afa504e6a5fc06f | |
parent | 64a76bb91206726fae76e368b0b36447c0665003 (diff) |
AdvSearch: Hide "fuzzy" option in release date filter when not applicable
-rw-r--r-- | elm/AdvSearch/RDate.elm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elm/AdvSearch/RDate.elm b/elm/AdvSearch/RDate.elm index 8c2eaf9d..a5eeed25 100644 --- a/elm/AdvSearch/RDate.elm +++ b/elm/AdvSearch/RDate.elm @@ -85,7 +85,8 @@ view model = List.map (\op -> if model.op == op then b [] [ text (showOp op) ] else a [ href "#", onClickD (MOp op True) ] [ text (showOp op) ] ) [Eq, Ne, Ge, Gt, Le, Lt] - , linkRadio model.fuzzy Fuzzy [ span [ title + , if (R.expand model.date).d /= 99 then text "" else + linkRadio model.fuzzy Fuzzy [ span [ title <| "Without fuzzy matching, partial dates will always match after the last date of the chosen time period, " ++ "e.g. \"< 2010-10\" would also match anything released in 2010-10 and \"= 2010-10\" would only match releases for which we don't know the exact date." ++ "\n\nFuzzy match will adjust the query to do what you mean." |