From f0e9694bbd5719400295811ee332b68ae3abff3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Jim=C3=A9nez?= Date: Tue, 3 Apr 2018 12:57:15 +0200 Subject: [PATCH] Fixed code from suggestions --- public/controllers/settings.js | 4 ---- public/templates/settings/settings.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/public/controllers/settings.js b/public/controllers/settings.js index fadfc9d76..014fa3d2b 100644 --- a/public/controllers/settings.js +++ b/public/controllers/settings.js @@ -43,8 +43,6 @@ app.controller('settingsController', function ($scope, $rootScope, $http, $route $scope.indexPatterns = []; $scope.apiEntries = []; - $scope.apiEntriesLoaded = false; - if ($routeParams.tab){ $scope.submenuNavItem = $routeParams.tab; } @@ -143,8 +141,6 @@ app.controller('settingsController', function ($scope, $rootScope, $http, $route $scope.apiEntries = data.data.length > 0 ? data.data : []; $scope.apiEntries = $scope.apiEntries.sort(sortByTimestamp); - $scope.apiEntriesLoaded = true; - if (appState.getCurrentAPI() !== undefined && appState.getCurrentAPI() !== null) $scope.currentDefault = JSON.parse(appState.getCurrentAPI()).id; if(!$scope.$$phase) $scope.$digest(); diff --git a/public/templates/settings/settings.html b/public/templates/settings/settings.html index 1aa471d9a..5a2e01374 100644 --- a/public/templates/settings/settings.html +++ b/public/templates/settings/settings.html @@ -15,7 +15,7 @@
- + Welcome to the Wazuh App for Kibana 6