summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2021-01-18 16:15:39 +0100
committerYorhel <git@yorhel.nl>2021-01-18 16:15:54 +0100
commit512e82ef617f66f941811c1419ec14dc2313c83a (patch)
tree30b985470192214bfd78834e625531743f189690 /elm
parent074bf602f896ebd9eb3c8b2c130eca05299a44dc (diff)
Staff::List: Convert to new AdvSearch system
Mostly copy-paste, nothing special going on here.
Diffstat (limited to 'elm')
-rw-r--r--elm/AdvSearch/Fields.elm1
-rw-r--r--elm/AdvSearch/Main.elm1
2 files changed, 2 insertions, 0 deletions
diff --git a/elm/AdvSearch/Fields.elm b/elm/AdvSearch/Fields.elm
index b9d02a8f..6fdc5f84 100644
--- a/elm/AdvSearch/Fields.elm
+++ b/elm/AdvSearch/Fields.elm
@@ -166,6 +166,7 @@ nestView dat dd model =
&& f.title /= ""
&& (dat.uid /= Nothing || f.title /= "My Labels")
&& (dat.uid /= Nothing || f.title /= "My List")
+ && (f.title /= "Name" || not (Set.isEmpty parents))
&& not (f.title == "Role" && (List.head (List.drop 1 model.addtype)) == Just C) -- No "role" filter for character seiyuu (the seiyuu role is implied, after all)
&& not (Set.member (showQType f.qtype) parents))
showT par t =
diff --git a/elm/AdvSearch/Main.elm b/elm/AdvSearch/Main.elm
index a46b09a9..5f4d6406 100644
--- a/elm/AdvSearch/Main.elm
+++ b/elm/AdvSearch/Main.elm
@@ -108,6 +108,7 @@ loadQuery odat arg =
case arg.qtype of
"v" -> V
"c" -> C
+ "s" -> S
_ -> R
(dat2, query) = JD.decodeValue decodeQuery arg.query |> Result.toMaybe |> Maybe.withDefault (QAnd []) |> fieldFromQuery qtype dat