This commit is contained in:
Jesús Ángel González 2018-01-31 17:02:38 +01:00 committed by Javier Castro
parent 0e7b493cd9
commit 9727b3c0e7

View File

@ -399,7 +399,7 @@ app.controller('settingsController', function ($scope, $rootScope, $http, $route
const data = await genericReq.request('GET', `/api/wazuh-elastic/updatePattern/${newIndexPattern}`);
appState.setCurrentPattern(newIndexPattern);
$scope.$emit('updatePattern', {});
notify.info('Successfully changed the default index-pattern');
errorHandler.info('Successfully changed the default index-pattern','Settings');
$scope.selectedIndexPattern = newIndexPattern;
if(!$scope.$$phase) $scope.$digest();
return;