mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Search] Fix crawler deletion modal body text (#178190)
This commit is contained in:
parent
1441ef2817
commit
b1ad3228d3
1 changed files with 28 additions and 12 deletions
|
@ -98,12 +98,19 @@ export const DeleteConnectorModal: React.FC<DeleteConnectorModalProps> = ({ isCr
|
|||
isLoading={isDeleteLoading}
|
||||
>
|
||||
<p>
|
||||
{i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.deleteModal.delete.description',
|
||||
{
|
||||
defaultMessage: 'You are about to delete this connector:',
|
||||
}
|
||||
)}
|
||||
{!isCrawler
|
||||
? i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.deleteModal.delete.connector.description',
|
||||
{
|
||||
defaultMessage: 'You are about to delete this connector:',
|
||||
}
|
||||
)
|
||||
: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.deleteModal.delete.crawler.description',
|
||||
{
|
||||
defaultMessage: 'You are about to delete this crawler:',
|
||||
}
|
||||
)}
|
||||
</p>
|
||||
<p>
|
||||
<ul>
|
||||
|
@ -150,12 +157,21 @@ export const DeleteConnectorModal: React.FC<DeleteConnectorModalProps> = ({ isCr
|
|||
)}
|
||||
<EuiForm>
|
||||
<EuiFormRow
|
||||
label={i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.deleteModal.indexNameInput.label',
|
||||
{
|
||||
defaultMessage: 'Connector name',
|
||||
}
|
||||
)}
|
||||
label={
|
||||
!isCrawler
|
||||
? i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.deleteModal.connector.indexNameInput.label',
|
||||
{
|
||||
defaultMessage: 'Connector name',
|
||||
}
|
||||
)
|
||||
: i18n.translate(
|
||||
'xpack.enterpriseSearch.content.connectors.deleteModal.crawler.indexNameInput.label',
|
||||
{
|
||||
defaultMessage: 'Crawler name',
|
||||
}
|
||||
)
|
||||
}
|
||||
>
|
||||
<EuiFieldText
|
||||
onChange={(e) => setInputConnectorName(e.target.value)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue