Hide lens only for path key

This commit is contained in:
Adri Valle 2019-08-29 11:38:06 +02:00 committed by Jesús Ángel
parent 4617dbb390
commit ef0631e718
2 changed files with 3 additions and 3 deletions

View File

@ -522,9 +522,9 @@ app.directive('wzTable', function() {
const key = $scope.parseKey(k);
const canFilterInRules =
$scope.path === '/rules' &&
(key === 'level' || key === 'file' || key === 'path');
(key === 'level' || key === 'file' || (key === 'path' && !$scope.lens));
const canFilterInDecoders =
$scope.path === '/decoders' && (key === 'path' || key === 'file');
$scope.path === '/decoders' && ((key === 'path' && !$scope.lens) || key === 'file');
$scope.filterableColumns[key] = !!(
canFilterInRules || canFilterInDecoders
);

View File

@ -47,7 +47,7 @@
ng-mouseleave="selectedCell = false" ng-click="handleClick(key,item,$event)">
<div class="wz-text-truncatable-container">
<span class="wzTableCellFilter" ng-show="filterableColumns[parseKey(key)] && selectedRow === $parent.$index && selectedCell == $index">
<span ng-show="!lens" class="fa fa-search-plus"></span> </span>
<span class="fa fa-search-plus"></span> </span>
<span class="wz-text-truncatable" ng-class="parseKey(key) === 'file' && (path === '/rules' || path === '/decoders' )? 'euiLink euiLink--primary' : ''">
{{
parseValue(key,item)