diff options
author | Yorhel <git@yorhel.nl> | 2021-01-03 10:45:26 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-01-03 10:45:28 +0100 |
commit | ceea93df7af8b17513a399a5a1c903bb66c7ad61 (patch) | |
tree | e1ea775b60a660ed43aac6357571086b359bd1b2 /elm/Lib | |
parent | 65e36750ec6ed95d82529146887dd82b2e9dde1c (diff) |
AdvSearch: Only autocomplete referenced anime
Fixes https://vndb.org/t14995.53 point 1
Diffstat (limited to 'elm/Lib')
-rw-r--r-- | elm/Lib/Autocomplete.elm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elm/Lib/Autocomplete.elm b/elm/Lib/Autocomplete.elm index d1d974b1..45a67fa1 100644 --- a/elm/Lib/Autocomplete.elm +++ b/elm/Lib/Autocomplete.elm @@ -188,9 +188,9 @@ charSource = } -animeSource : SourceConfig m GApi.ApiAnimeResult -animeSource = - { source = Endpoint (\s -> GA.send { search = s }) +animeSource : Bool -> SourceConfig m GApi.ApiAnimeResult +animeSource ref = + { source = Endpoint (\s -> GA.send { search = s, ref = ref }) <| \x -> case x of GApi.AnimeResult e -> Just e _ -> Nothing |