diff --git a/public/locales/en-US/translation.json b/public/locales/en-US/translation.json index 3a98730..bd8b9d4 100644 --- a/public/locales/en-US/translation.json +++ b/public/locales/en-US/translation.json @@ -390,7 +390,8 @@ "title": "Random aliases will look like this", "helperText": "This is just a preview. Those are not real aliases." }, - "randomAliasesIncreaseExplanation": "Random aliases' length will be increased from {{originalLength}} to {{increasedLength}} characters after {{amount}} aliases have been created." + "randomAliasesIncreaseExplanation": "Random aliases' length will be increased from {{originalLength}} to {{increasedLength}} characters after {{amount}} aliases have been created.", + "resetLabel": "Reset to defaults" } } }, diff --git a/src/route-widgets/GlobalSettingsRoute/SettingsForm.tsx b/src/route-widgets/GlobalSettingsRoute/SettingsForm.tsx index 44a9d70..d99b4d9 100644 --- a/src/route-widgets/GlobalSettingsRoute/SettingsForm.tsx +++ b/src/route-widgets/GlobalSettingsRoute/SettingsForm.tsx @@ -2,7 +2,7 @@ import * as yup from "yup" import {useFormik} from "formik" import {TbCursorText} from "react-icons/tb" import {useTranslation} from "react-i18next" -import {MdCheck, MdOutlineChangeCircle, MdTextFormat} from "react-icons/md" +import {MdCheck, MdClear, MdOutlineChangeCircle, MdTextFormat} from "react-icons/md" import {BsImage} from "react-icons/bs" import {AxiosError} from "axios" @@ -122,6 +122,8 @@ export default function SettingsForm({settings, queryKey}: SettingsFormProps) { initialValues: settings, }) + // Fields will either have a value or be filled from the default values. + // That means we will never have a `null` value. return (