Skip to content

Commit

Permalink
Merge pull request elastic#15 from nlatipov/issue-show-filter-tooltip
Browse files Browse the repository at this point in the history
Show filter's tooltip
  • Loading branch information
stratoula authored Mar 1, 2022
2 parents b17fb79 + d682de7 commit 6b3a782
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ export const FilterExpressionItem: FC<Props> = ({
}
for (const filter of subGroupedFilters) {
const label = getValueLabel(filter);

const prefixText = filter.meta.negate
? ` ${i18n.translate('data.filter.filterBar.negatedFilterPrefix', {
defaultMessage: 'NOT ',
Expand All @@ -421,9 +420,7 @@ export const FilterExpressionItem: FC<Props> = ({
const filterContent = getFilterContent(filter, label, prefix, relationship);
filterExpression.push(filterContent);

const text = label.title;
filterText += `${filter?.meta?.key}: ${text} ${groupedFilters.length > 1 ? filter.relationship || '' : ''
} `;
filterText += `${filter?.meta?.key}: ${filter?.meta?.params?.query} ${relationship} `;
}
if (needsParenthesis) {
filterExpression.push(<EuiTextColor color="rgb(0, 113, 194)">)</EuiTextColor>);
Expand Down

0 comments on commit 6b3a782

Please sign in to comment.