UI : Rename Add Elastic Search Reindex button item name (#8848)

* Rename Add Elastic Search Reindex button name

* changes as per comments

* added localisation

* changes as per comments

* Fix label condition

Co-authored-by: Sachin Chaurasiya <sachinchaurasiyachotey87@gmail.com>
This commit is contained in:
Ashish Gupta 2022-11-21 15:24:35 +05:30 committed by GitHub
parent 8e57787ad4
commit 5f358c3b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -262,7 +262,11 @@ const Ingestion: React.FC<IngestionProps> = ({
<DropDownList
horzPosRight
dropDownList={types.map((type) => ({
name: `Add ${startCase(type)} Ingestion`,
name: `${t('label.add')} ${startCase(type)} ${
type === PipelineType.ElasticSearchReindex
? ''
: t('label.ingestion')
}`,
value: type,
}))}
onSelect={(_e, value) =>

View File

@ -309,6 +309,7 @@
"server": "Server",
"feature-plural": "Features",
"detail-plural": "Details",
"ingestion": "Ingestion",
"add-workflow-ingestion": "Add {{workflow}} Ingestion",
"clearAll": "Clear All",
"view-less": "View less",