Skip to content

Commit e2d0623

Browse files
authored
Support sentence case names for known processors (#74847) (#74875)
1 parent f98cf0e commit e2d0623

File tree

1 file changed

+3
-1
lines changed
  • x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item_tooltip

1 file changed

+3
-1
lines changed

x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/pipeline_processors_editor_item_tooltip/processor_information.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
import React, { FunctionComponent, memo } from 'react';
88
import { EuiPanel, EuiFlexGroup, EuiFlexItem, EuiText } from '@elastic/eui';
99
import { ProcessorInternal } from '../../types';
10+
import { getProcessorDescriptor } from '../shared';
1011

1112
interface Props {
1213
processor: ProcessorInternal;
1314
}
1415

1516
export const ProcessorInformation: FunctionComponent<Props> = memo(({ processor }) => {
17+
const label = getProcessorDescriptor(processor.type)?.label ?? processor.type;
1618
return (
1719
<EuiPanel>
1820
<EuiFlexGroup justifyContent="center" alignItems="center" responsive={false} gutterSize="s">
1921
<EuiFlexItem grow={false}>
20-
<b>{processor.type}</b>
22+
<b>{label}</b>
2123
</EuiFlexItem>
2224
{processor.options.description ? (
2325
<EuiFlexItem grow={false}>

0 commit comments

Comments
 (0)