mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fixing issue with deleting scripted field in index pattern section (#25122)
This commit is contained in:
parent
e5ebc62b16
commit
24ba1908a3
1 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ function updateSourceFiltersTable($scope, $state) {
|
|||
filterFilter={$scope.fieldFilter}
|
||||
fieldWildcardMatcher={$scope.fieldWildcardMatcher}
|
||||
onAddOrRemoveFilter={() => {
|
||||
$scope.editSections = $scope.editSectionsProvider($scope.indexPattern);
|
||||
$scope.editSections = $scope.editSectionsProvider($scope.indexPattern, $scope.indexPatternListProvider);
|
||||
$scope.refreshFilters();
|
||||
$scope.$apply();
|
||||
}}
|
||||
|
@ -97,7 +97,7 @@ function updateScriptedFieldsTable($scope, $state) {
|
|||
getRouteHref: (obj, route) => $scope.kbnUrl.getRouteHref(obj, route),
|
||||
}}
|
||||
onRemoveField={() => {
|
||||
$scope.editSections = $scope.editSectionsProvider($scope.indexPattern);
|
||||
$scope.editSections = $scope.editSectionsProvider($scope.indexPattern, $scope.indexPatternListProvider);
|
||||
$scope.refreshFilters();
|
||||
}}
|
||||
/>
|
||||
|
@ -192,6 +192,7 @@ uiModules.get('apps/management')
|
|||
$scope.editSectionsProvider = Private(IndicesEditSectionsProvider);
|
||||
$scope.kbnUrl = Private(KbnUrlProvider);
|
||||
$scope.indexPattern = $route.current.locals.indexPattern;
|
||||
$scope.indexPatternListProvider = indexPatternListProvider;
|
||||
$scope.indexPattern.tags = indexPatternListProvider.getIndexPatternTags($scope.indexPattern);
|
||||
$scope.getFieldInfo = indexPatternListProvider.getFieldInfo;
|
||||
docTitle.change($scope.indexPattern.title);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue