mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Hide lens only for path key
This commit is contained in:
parent
4617dbb390
commit
ef0631e718
@ -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
|
||||
);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user