diff --git a/frontend/src/pages/Settings/General/index.tsx b/frontend/src/pages/Settings/General/index.tsx index 3c48ceeee..5e9b1b5dc 100644 --- a/frontend/src/pages/Settings/General/index.tsx +++ b/frontend/src/pages/Settings/General/index.tsx @@ -46,7 +46,11 @@ const SettingsGeneralView: FunctionComponent = () => { Valid IPv4 address or '0.0.0.0' for all interfaces - + @@ -131,7 +135,10 @@ const SettingsGeneralView: FunctionComponent = () => { - + @@ -177,8 +184,17 @@ const SettingsGeneralView: FunctionComponent = () => { - - Absolute path to the backup directory + + + Absolute path to the backup directory + + + + + diff --git a/frontend/src/pages/Settings/Radarr/index.tsx b/frontend/src/pages/Settings/Radarr/index.tsx index 7281983fd..4511134f7 100644 --- a/frontend/src/pages/Settings/Radarr/index.tsx +++ b/frontend/src/pages/Settings/Radarr/index.tsx @@ -39,7 +39,10 @@ const SettingsRadarrView: FunctionComponent = () => { Hostname or IPv4 Address - + diff --git a/frontend/src/pages/Settings/Sonarr/index.tsx b/frontend/src/pages/Settings/Sonarr/index.tsx index c1e26e2dc..6dd97b0b6 100644 --- a/frontend/src/pages/Settings/Sonarr/index.tsx +++ b/frontend/src/pages/Settings/Sonarr/index.tsx @@ -41,7 +41,10 @@ const SettingsSonarrView: FunctionComponent = () => { Hostname or IPv4 Address - + diff --git a/frontend/src/pages/Settings/components/forms.tsx b/frontend/src/pages/Settings/components/forms.tsx index 47361289a..32ac352e3 100644 --- a/frontend/src/pages/Settings/components/forms.tsx +++ b/frontend/src/pages/Settings/components/forms.tsx @@ -39,6 +39,7 @@ export interface TextProps extends BaseInput { placeholder?: React.ReactText; password?: boolean; controlled?: boolean; + numberWithArrows?: boolean; } export const Text: FunctionComponent = ({ @@ -49,15 +50,26 @@ export const Text: FunctionComponent = ({ override, password, settingKey, + numberWithArrows, }) => { const value = useLatest(settingKey, isReactText, override); const update = useSingleUpdate(); const collapse = useCollapse(); + const fieldType = () => { + if (password) { + return "password"; + } else if (numberWithArrows) { + return "number"; + } else { + return "text"; + } + }; + return (