@ -12,6 +12,7 @@ import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/ModalHeader' ;
import { inputTypes , kinds } from 'Helpers/Props' ;
import { authenticationMethodOptions , authenticationRequiredOptions , authenticationRequiredWarning } from 'Settings/General/SecuritySettings' ;
import translate from 'Utilities/String/translate' ;
import styles from './AuthenticationRequiredModalContent.css' ;
function onModalClose ( ) {
@ -54,7 +55,7 @@ function AuthenticationRequiredModalContent(props) {
onModalClose = { onModalClose }
>
< ModalHeader >
Authentication Required
{ translate( ' AuthenticationRequired') }
< / M o d a l H e a d e r >
< ModalBody >
@ -69,13 +70,13 @@ function AuthenticationRequiredModalContent(props) {
isPopulated && ! error ?
< div >
< FormGroup >
< FormLabel > Authentication< / F o r m L a b e l >
< FormLabel > { translate( ' Authentication') } < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . SELECT }
name = "authenticationMethod"
values = { authenticationMethodOptions }
helpText = "Require Username and Password to access Sonarr"
helpText = { translate ( 'AuthenticationMethodHelpText' ) }
onChange = { onInputChange }
{ ... authenticationMethod }
/ >
@ -84,13 +85,13 @@ function AuthenticationRequiredModalContent(props) {
{
authenticationEnabled ?
< FormGroup >
< FormLabel > Authentication Required< / F o r m L a b e l >
< FormLabel > { translate( ' AuthenticationRequired') } < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . SELECT }
name = "authenticationRequired"
values = { authenticationRequiredOptions }
helpText = "Change which requests authentication is required for. Do not change unless you understand the risks."
helpText = { translate ( 'AuthenticationRequiredHelpText' ) }
onChange = { onInputChange }
{ ... authenticationRequired }
/ >
@ -101,7 +102,7 @@ function AuthenticationRequiredModalContent(props) {
{
authenticationEnabled ?
< FormGroup >
< FormLabel > Username< / F o r m L a b e l >
< FormLabel > { translate( ' Username') } < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . TEXT }
@ -116,7 +117,7 @@ function AuthenticationRequiredModalContent(props) {
{
authenticationEnabled ?
< FormGroup >
< FormLabel > Password< / F o r m L a b e l >
< FormLabel > { translate( ' Password') } < / F o r m L a b e l >
< FormInputGroup
type = { inputTypes . PASSWORD }
@ -143,7 +144,7 @@ function AuthenticationRequiredModalContent(props) {
isDisabled = { ! authenticationEnabled }
onPress = { onSavePress }
>
Save
{ translate( ' Save') }
< / S p i n n e r B u t t o n >
< / M o d a l F o o t e r >
< / M o d a l C o n t e n t >