@ -1,5 +1,6 @@
import PropTypes from 'prop-types' ;
import PropTypes from 'prop-types' ;
import React , { Component } from 'react' ;
import React , { Component } from 'react' ;
import Alert from 'Components/Alert' ;
import TextInput from 'Components/Form/TextInput' ;
import TextInput from 'Components/Form/TextInput' ;
import Icon from 'Components/Icon' ;
import Icon from 'Components/Icon' ;
import Button from 'Components/Link/Button' ;
import Button from 'Components/Link/Button' ;
@ -7,7 +8,7 @@ import Link from 'Components/Link/Link';
import LoadingIndicator from 'Components/Loading/LoadingIndicator' ;
import LoadingIndicator from 'Components/Loading/LoadingIndicator' ;
import PageContent from 'Components/Page/PageContent' ;
import PageContent from 'Components/Page/PageContent' ;
import PageContentBody from 'Components/Page/PageContentBody' ;
import PageContentBody from 'Components/Page/PageContentBody' ;
import { icons } from 'Helpers/Props' ;
import { icons , kinds } from 'Helpers/Props' ;
import getErrorMessage from 'Utilities/Object/getErrorMessage' ;
import getErrorMessage from 'Utilities/Object/getErrorMessage' ;
import translate from 'Utilities/String/translate' ;
import translate from 'Utilities/String/translate' ;
import AddNewAuthorSearchResultConnector from './Author/AddNewAuthorSearchResultConnector' ;
import AddNewAuthorSearchResultConnector from './Author/AddNewAuthorSearchResultConnector' ;
@ -127,9 +128,16 @@ class AddNewItem extends Component {
! isFetching && ! ! error ?
! isFetching && ! ! error ?
< div className = { styles . message } >
< div className = { styles . message } >
< div className = { styles . helpText } >
< div className = { styles . helpText } >
Failed to load search results , please try again .
{ translate ( 'FailedLoadingSearchResults' ) }
< / d i v >
< Alert kind = { kinds . WARNING } > { getErrorMessage ( error ) } < / A l e r t >
< div >
< Link to = "https://wiki.servarr.com/readarr/troubleshooting#invalid-response-received-from-metadata-api" >
{ translate ( 'WhySearchesCouldBeFailing' ) }
< / L i n k >
< / d i v >
< / d i v >
< div > { getErrorMessage ( error ) } < / d i v >
< / d i v > : n u l l
< / d i v > : n u l l
}
}