mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-22 22:34:53 -04:00
New: Default name when adding providers
This commit is contained in:
@@ -16,10 +16,11 @@ class AddIndexerProxyItem extends Component {
|
||||
|
||||
onIndexerProxySelect = () => {
|
||||
const {
|
||||
implementation
|
||||
implementation,
|
||||
implementationName
|
||||
} = this.props;
|
||||
|
||||
this.props.onIndexerProxySelect({ implementation });
|
||||
this.props.onIndexerProxySelect({ implementation, implementationName });
|
||||
};
|
||||
|
||||
//
|
||||
@@ -77,6 +78,7 @@ class AddIndexerProxyItem extends Component {
|
||||
key={preset.name}
|
||||
name={preset.name}
|
||||
implementation={implementation}
|
||||
implementationName={implementationName}
|
||||
onPress={onIndexerProxySelect}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -47,7 +47,7 @@ function EditIndexerProxyModalContent(props) {
|
||||
return (
|
||||
<ModalContent onModalClose={onModalClose}>
|
||||
<ModalHeader>
|
||||
{`${id ? 'Edit' : 'Add'} Proxy - ${implementationName}`}
|
||||
{id ? translate('EditIndexerProxyImplementation', { implementationName }) : translate('AddIndexerProxyImplementation', { implementationName })}
|
||||
</ModalHeader>
|
||||
|
||||
<ModalBody>
|
||||
|
||||
Reference in New Issue
Block a user