Skip to content

Commit

Permalink
[Discover] Replace font-awesome data table filter in/out icons with E…
Browse files Browse the repository at this point in the history
…UI (#79622)
  • Loading branch information
kertal authored Oct 7, 2020
1 parent 019e2ad commit 603adab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function createTableRowDirective($compile: ng.ICompileService) {
});

$scope.inlineFilter = function inlineFilter($event: any, type: string) {
const column = $($event.target).data().column;
const column = $($event.currentTarget).data().column;
const field = $scope.indexPattern.fields.getByName(column);
$scope.filter(field, $scope.flattenedRow[column], type);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
<% if (filterable) { %>
<button
ng-click="inlineFilter($event, '+')"
class="fa fa-search-plus kbnDocTableRowFilterButton"
class="kbnDocTableRowFilterButton"
data-column="<%- column %>"
tooltip-append-to-body="1"
data-test-subj="docTableCellFilter"
tooltip="{{ ::'discover.docTable.tableRow.filterForValueButtonTooltip' | i18n: {defaultMessage: 'Filter for value'} }}"
tooltip-placement="bottom"
aria-label="{{ ::'discover.docTable.tableRow.filterForValueButtonAriaLabel' | i18n: {defaultMessage: 'Filter for value'} }}"
></button>
><icon type="'plusInCircle'" size="'s'" color="'primary'"></icon></button>
<button
ng-click="inlineFilter($event, '-')"
class="fa fa-search-minus kbnDocTableRowFilterButton"
class="kbnDocTableRowFilterButton"
data-column="<%- column %>"
data-test-subj="docTableCellFilterNegate"
tooltip="{{ ::'discover.docTable.tableRow.filterOutValueButtonTooltip' | i18n: {defaultMessage: 'Filter out value'} }}"
aria-label="{{ ::'discover.docTable.tableRow.filterOutValueButtonAriaLabel' | i18n: {defaultMessage: 'Filter out value'} }}"
tooltip-append-to-body="1"
tooltip-placement="bottom"
></button>
><icon type="'minusInCircle'" size="'s'" color="'primary'"></icon></button>
<% } %>
</span>
</td>

0 comments on commit 603adab

Please sign in to comment.