New: Default name when adding providers

This commit is contained in:
Bogdan
2023-08-14 02:27:59 +03:00
parent 27928103c5
commit a758161e31
16 changed files with 48 additions and 18 deletions
@@ -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>