summaryrefslogtreecommitdiff
path: root/elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-07-29 21:12:35 +0200
committerYorhel <git@yorhel.nl>2022-07-29 21:12:35 +0200
commitba4f0b483ef83a2e3c41c506f8f94d5e06dc0baf (patch)
tree55286c5af230e15f69ceb0497dd93d2f45ada7c1 /elm
parent61e254baa61bae0c77eebc696afc4a3a90bbd224 (diff)
Display staff original name and primary language flag in autocomplete
Diffstat (limited to 'elm')
-rw-r--r--elm/Lib/Autocomplete.elm7
1 files changed, 5 insertions, 2 deletions
diff --git a/elm/Lib/Autocomplete.elm b/elm/Lib/Autocomplete.elm
index eaa80ff0..60275c14 100644
--- a/elm/Lib/Autocomplete.elm
+++ b/elm/Lib/Autocomplete.elm
@@ -165,8 +165,11 @@ staffSource =
GApi.StaffResult e -> Just e
_ -> Nothing
, view = \i ->
- [ b [ class "grayedout" ] [ text <| i.id ++ ": " ]
- , text i.name ]
+ [ langIcon i.lang
+ , b [ class "grayedout" ] [ text <| i.id ++ ": " ]
+ , text i.name
+ , b [ class "grayedout" ] [ text " ", text i.original ]
+ ]
, key = \i -> String.fromInt i.aid
}