Skip to content

Commit 5872ade

Browse files
committed
only show tooltip for rollup indices
1 parent be9accf commit 5872ade

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

x-pack/plugins/lens/public/indexpattern_datasource/datapanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
580580
})
581581
}
582582
exists={true}
583+
hideDetails={fieldInfoUnavailable}
583584
hasLoaded={!!hasSyncedExistingFields}
584585
fieldsCount={filteredFieldGroups.availableFields.length}
585586
isFiltered={

x-pack/plugins/lens/public/indexpattern_datasource/fields_accordion.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface FieldsAccordionProps {
4747
renderCallout: JSX.Element;
4848
exists: boolean;
4949
showExistenceFetchError?: boolean;
50+
hideDetails?: boolean;
5051
}
5152

5253
export const InnerFieldsAccordion = function InnerFieldsAccordion({
@@ -61,13 +62,20 @@ export const InnerFieldsAccordion = function InnerFieldsAccordion({
6162
fieldProps,
6263
renderCallout,
6364
exists,
65+
hideDetails,
6466
showExistenceFetchError,
6567
}: FieldsAccordionProps) {
6668
const renderField = useCallback(
6769
(field: IndexPatternField) => (
68-
<FieldItem {...fieldProps} key={field.name} field={field} exists={!!exists} />
70+
<FieldItem
71+
{...fieldProps}
72+
key={field.name}
73+
field={field}
74+
exists={exists}
75+
hideDetails={hideDetails}
76+
/>
6977
),
70-
[fieldProps, exists]
78+
[fieldProps, exists, hideDetails]
7179
);
7280

7381
return (

0 commit comments

Comments
 (0)