Added: Show name in Indexer-Client-Notification modal headers

This commit is contained in:
Qstick 2018-08-18 15:02:19 -04:00
commit b5ae7eed87
5 changed files with 16 additions and 6 deletions

View file

@ -41,6 +41,7 @@ class EditDownloadClientModalContent extends Component {
const {
id,
implementationName,
name,
enable,
fields,
@ -50,7 +51,7 @@ class EditDownloadClientModalContent extends Component {
return (
<ModalContent onModalClose={onModalClose}>
<ModalHeader>
{id ? 'Edit DownloadClient' : 'Add DownloadClient'}
{`${id ? 'Edit' : 'Add'} Download Client - ${implementationName}`}
</ModalHeader>
<ModalBody>
@ -61,7 +62,7 @@ class EditDownloadClientModalContent extends Component {
{
!isFetching && !!error &&
<div>Unable to add a new downloadClient, please try again.</div>
<div>Unable to add a new download client, please try again.</div>
}
{

View file

@ -35,6 +35,7 @@ function EditIndexerModalContent(props) {
const {
id,
implementationName,
name,
enableRss,
enableAutomaticSearch,
@ -47,7 +48,7 @@ function EditIndexerModalContent(props) {
return (
<ModalContent onModalClose={onModalClose}>
<ModalHeader>
{id ? 'Edit Indexer' : 'Add Indexer'}
{`${id ? 'Edit' : 'Add'} Indexer - ${implementationName}`}
</ModalHeader>
<ModalBody>

View file

@ -36,6 +36,7 @@ function EditNotificationModalContent(props) {
const {
id,
implementationName,
name,
onGrab,
onDownload,
@ -55,7 +56,7 @@ function EditNotificationModalContent(props) {
return (
<ModalContent onModalClose={onModalClose}>
<ModalHeader>
{id ? 'Edit Notification' : 'Add Notification'}
{`${id ? 'Edit' : 'Add'} Connection - ${implementationName}`}
</ModalHeader>
<ModalBody>