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

pull/455/head
Qstick 6 years ago
parent b9f625a0a7
commit b5ae7eed87

@ -41,6 +41,7 @@ class EditDownloadClientModalContent extends Component {
const { const {
id, id,
implementationName,
name, name,
enable, enable,
fields, fields,
@ -50,7 +51,7 @@ class EditDownloadClientModalContent extends Component {
return ( return (
<ModalContent onModalClose={onModalClose}> <ModalContent onModalClose={onModalClose}>
<ModalHeader> <ModalHeader>
{id ? 'Edit DownloadClient' : 'Add DownloadClient'} {`${id ? 'Edit' : 'Add'} Download Client - ${implementationName}`}
</ModalHeader> </ModalHeader>
<ModalBody> <ModalBody>
@ -61,7 +62,7 @@ class EditDownloadClientModalContent extends Component {
{ {
!isFetching && !!error && !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>
} }
{ {

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

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

@ -53,8 +53,8 @@ function createProviderSettingsSelector(sectionName) {
isSaving, isSaving,
saveError, saveError,
isTesting, isTesting,
item: settings.settings, ...settings,
...settings item: settings.settings
}; };
} }
); );

@ -29,6 +29,13 @@ function selectSettings(item, pendingChanges, saveError) {
return result; return result;
} }
// Return a flattened value
if (key === 'implementationName') {
result.implementationName = item[key];
return result;
}
const setting = { const setting = {
value: item[key], value: item[key],
errors: _.map(_.remove(validationFailures, (failure) => { errors: _.map(_.remove(validationFailures, (failure) => {

Loading…
Cancel
Save