diff --git a/public/controllers/manager.js b/public/controllers/manager.js index fdf257bb2..3bc02b7b4 100644 --- a/public/controllers/manager.js +++ b/public/controllers/manager.js @@ -15,43 +15,43 @@ import TabNames from '../utils/tab-names' const app = modules.get('app/wazuh', []); app.controller('managerController', function ($scope, $rootScope, $routeParams, $location) { - $scope.submenuNavItem = 'welcome'; - $scope.submenuNavItem2 = 'rules'; + $scope.tab = 'welcome'; + $scope.rulesetTab = 'rules'; // Tab names $scope.tabNames = TabNames; if ($routeParams.tab){ - $scope.submenuNavItem = $routeParams.tab; + $scope.tab = $routeParams.tab; } $scope.reloadGroups = () => { - $scope.submenuNavItem = 'groups'; + $scope.tab = 'groups'; $scope.$broadcast('groupsIsReloaded') } $scope.reloadRuleset = () => { - $scope.submenuNavItem = 'ruleset'; + $scope.tab = 'ruleset'; $scope.$broadcast('rulesetIsReloaded') } // Watchers - $scope.$watch('submenuNavItem', () => { - if($scope.submenuNavItem === 'ruleset') { + $scope.$watch('tab', () => { + if($scope.tab === 'ruleset') { $rootScope.globalRuleSet = 'ruleset'; - $rootScope.globalsubmenuNavItem2 = $scope.submenuNavItem2; + $rootScope.globalRulesetTab = $scope.rulesetTab; } else { delete $rootScope.globalRuleSet; - delete $rootScope.globalsubmenuNavItem2; + delete $rootScope.globalRulesetTab; } - $location.search('tab', $scope.submenuNavItem); + $location.search('tab', $scope.tab); }); $scope.switchTab = tab => { - $scope.submenuNavItem = tab; + $scope.tab = tab; } - $scope.setRulesTab = (tab) => $scope.submenuNavItem2 = tab; + $scope.setRulesTab = (tab) => $scope.rulesetTab = tab; $scope.$on("$destroy", () => { diff --git a/public/controllers/ruleset.js b/public/controllers/ruleset.js index 4c7097e15..be737daf1 100644 --- a/public/controllers/ruleset.js +++ b/public/controllers/ruleset.js @@ -16,7 +16,7 @@ const app = modules.get('app/wazuh', []); app.controller('rulesController', function ($timeout, $scope, $rootScope, $sce, Rules, RulesRelated, RulesAutoComplete, errorHandler, genericReq, appState, csvReq) { - $scope.setRulesTab = tab => $rootScope.globalsubmenuNavItem2 = tab; + $scope.setRulesTab = tab => $rootScope.globalRulesetTab = tab; //Initialization $scope.searchTerm = ''; @@ -196,7 +196,7 @@ app.controller('rulesController', function ($timeout, $scope, $rootScope, $sce, }); app.controller('decodersController', function ($timeout, $scope, $rootScope, $sce, Decoders, DecodersRelated, DecodersAutoComplete, errorHandler, genericReq, appState, csvReq) { - $scope.setRulesTab = tab => $rootScope.globalsubmenuNavItem2 = tab; + $scope.setRulesTab = tab => $rootScope.globalRulesetTab = tab; //Initialization $scope.searchTerm = ''; diff --git a/public/templates/manager/groups/groups.head b/public/templates/manager/groups/groups.head index d87fdff8f..d5ab25ee8 100644 --- a/public/templates/manager/groups/groups.head +++ b/public/templates/manager/groups/groups.head @@ -1,2 +1,2 @@ -
+
diff --git a/public/templates/manager/manager-configuration.html b/public/templates/manager/manager-configuration.html index ee92c35ed..89f6f851d 100644 --- a/public/templates/manager/manager-configuration.html +++ b/public/templates/manager/manager-configuration.html @@ -1,4 +1,4 @@ - +
diff --git a/public/templates/manager/manager-osseclog.html b/public/templates/manager/manager-osseclog.html index 8d34302f4..62e4e34c7 100644 --- a/public/templates/manager/manager-osseclog.html +++ b/public/templates/manager/manager-osseclog.html @@ -1,4 +1,4 @@ -
+
diff --git a/public/templates/manager/manager-status.html b/public/templates/manager/manager-status.html index 4b8ffe874..1c2fc1785 100644 --- a/public/templates/manager/manager-status.html +++ b/public/templates/manager/manager-status.html @@ -1,4 +1,4 @@ - +
diff --git a/public/templates/manager/manager-welcome.html b/public/templates/manager/manager-welcome.html index a0b360ede..929d2226e 100644 --- a/public/templates/manager/manager-welcome.html +++ b/public/templates/manager/manager-welcome.html @@ -1,4 +1,4 @@ -
+
diff --git a/public/templates/manager/manager.head b/public/templates/manager/manager.head index a1431efd1..0bcea1dd6 100644 --- a/public/templates/manager/manager.head +++ b/public/templates/manager/manager.head @@ -9,13 +9,13 @@
-
+
Management - / {{ tabNames[submenuNavItem] }} + / {{ tabNames[tab] }}
-
+
Management / Welcome
diff --git a/public/templates/manager/monitoring/header.head b/public/templates/manager/monitoring/header.head index c6ad8b13b..323170047 100644 --- a/public/templates/manager/monitoring/header.head +++ b/public/templates/manager/monitoring/header.head @@ -1 +1 @@ - + diff --git a/public/templates/manager/monitoring/no-cluster.html b/public/templates/manager/monitoring/no-cluster.html index 92d261d5d..79812c477 100644 --- a/public/templates/manager/monitoring/no-cluster.html +++ b/public/templates/manager/monitoring/no-cluster.html @@ -1,4 +1,4 @@ - +
diff --git a/public/templates/manager/reporting/header.head b/public/templates/manager/reporting/header.head index e9480da2d..adf14fcc6 100644 --- a/public/templates/manager/reporting/header.head +++ b/public/templates/manager/reporting/header.head @@ -1 +1 @@ - + diff --git a/public/templates/manager/ruleset/decoders/decoders-list.html b/public/templates/manager/ruleset/decoders/decoders-list.html index 12b19d501..30cecfc91 100644 --- a/public/templates/manager/ruleset/decoders/decoders-list.html +++ b/public/templates/manager/ruleset/decoders/decoders-list.html @@ -27,11 +27,11 @@
- Rules - Decoders diff --git a/public/templates/manager/ruleset/decoders/decoders.head b/public/templates/manager/ruleset/decoders/decoders.head index 0b9795e7d..a67fab7c5 100644 --- a/public/templates/manager/ruleset/decoders/decoders.head +++ b/public/templates/manager/ruleset/decoders/decoders.head @@ -1,4 +1,4 @@ -
diff --git a/public/templates/manager/ruleset/rules/rules-list.html b/public/templates/manager/ruleset/rules/rules-list.html index b80075515..e20c009ed 100644 --- a/public/templates/manager/ruleset/rules/rules-list.html +++ b/public/templates/manager/ruleset/rules/rules-list.html @@ -34,11 +34,11 @@ - Rules - Decoders diff --git a/public/templates/manager/ruleset/rules/rules.head b/public/templates/manager/ruleset/rules/rules.head index 91fff9066..5317ecb30 100644 --- a/public/templates/manager/ruleset/rules/rules.head +++ b/public/templates/manager/ruleset/rules/rules.head @@ -1,4 +1,4 @@ -