From ee90d3f40ff0da2f0126ca8cf9a60e209f528713 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 9 Jun 2024 22:33:13 -0400 Subject: [PATCH] wip --- frontend/src/components/forms/ProfileEditForm.tsx | 8 +++++++- frontend/src/pages/Settings/Languages/table.tsx | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/forms/ProfileEditForm.tsx b/frontend/src/components/forms/ProfileEditForm.tsx index 85a451806..93b5440a4 100644 --- a/frontend/src/components/forms/ProfileEditForm.tsx +++ b/frontend/src/components/forms/ProfileEditForm.tsx @@ -88,7 +88,13 @@ const ProfileEditForm: FunctionComponent = ({ form.values.items, (v) => { const suffix = - v.hi === "only" ? ":hi" : v.forced === "True" ? ":forced" : ""; + v.hi === "only" + ? ":hi" + : v.hi === "never" + ? ":normal" + : v.forced === "True" + ? ":forced" + : ""; return v.language + suffix; }, diff --git a/frontend/src/pages/Settings/Languages/table.tsx b/frontend/src/pages/Settings/Languages/table.tsx index 3d8177bce..e2b4d2814 100644 --- a/frontend/src/pages/Settings/Languages/table.tsx +++ b/frontend/src/pages/Settings/Languages/table.tsx @@ -196,8 +196,8 @@ const ItemBadge: FunctionComponent = ({ cutoff, item }) => { let result = item.language; if (item.hi === "only") { result += ":HI"; - } else if (item.hi === "also") { - result += " | " + result + ":HI"; + } else if (item.hi === "never") { + result += ":Normal"; } else if (item.forced === "True") { result += ":Forced"; }