|
|
@ -30,7 +30,7 @@ const defaultCutoffOptions: SelectorOption<Language.ProfileItem>[] = [
|
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
audio_exclude: "False",
|
|
|
|
audio_exclude: "False",
|
|
|
|
forced: "False",
|
|
|
|
forced: "False",
|
|
|
|
hi: "False",
|
|
|
|
hi: "also",
|
|
|
|
language: "any",
|
|
|
|
language: "any",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -88,7 +88,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({
|
|
|
|
form.values.items,
|
|
|
|
form.values.items,
|
|
|
|
(v) => {
|
|
|
|
(v) => {
|
|
|
|
const suffix =
|
|
|
|
const suffix =
|
|
|
|
v.hi === "True" ? ":hi" : v.forced === "True" ? ":forced" : "";
|
|
|
|
v.hi === "only" ? ":hi" : v.forced === "True" ? ":forced" : "";
|
|
|
|
|
|
|
|
|
|
|
|
return v.language + suffix;
|
|
|
|
return v.language + suffix;
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -190,12 +190,8 @@ const ProfileEditForm: FunctionComponent<Props> = ({
|
|
|
|
const selectValue = useMemo(() => {
|
|
|
|
const selectValue = useMemo(() => {
|
|
|
|
if (item.forced === "True") {
|
|
|
|
if (item.forced === "True") {
|
|
|
|
return "forced";
|
|
|
|
return "forced";
|
|
|
|
} else if (item.hi === "also") {
|
|
|
|
} else {
|
|
|
|
return "also";
|
|
|
|
return item.hi;
|
|
|
|
} else if (item.hi === "only") {
|
|
|
|
|
|
|
|
return "only";
|
|
|
|
|
|
|
|
} else if (item.hi === "never") {
|
|
|
|
|
|
|
|
return "never";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, [item.forced, item.hi]);
|
|
|
|
}, [item.forced, item.hi]);
|
|
|
|
|
|
|
|
|
|
|
@ -209,7 +205,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({
|
|
|
|
...item,
|
|
|
|
...item,
|
|
|
|
hi: value,
|
|
|
|
hi: value,
|
|
|
|
forced: value === "forced" ? "True" : "False",
|
|
|
|
forced: value === "forced" ? "True" : "False",
|
|
|
|
});
|
|
|
|
} as Language.ProfileItem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
></Select>
|
|
|
|
></Select>
|
|
|
|