Skip to content

Commit

Permalink
Merge pull request #558 from wazuh/fix-runjs
Browse files Browse the repository at this point in the history
Fix runjs
  • Loading branch information
Jesús Ángel authored Feb 17, 2019
2 parents 166e166 + 7951970 commit 6863ca7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SplunkAppForWazuh/appserver/static/js/run/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ define(['./module'], function (module) {
if (from !== 'agents' && !from.includes('agent') && !from.includes('ag-') && from !== 'discover') {
const cleanAgentsPinedFilters = true
$currentDataService.cleanFilters(cleanAgentsPinedFilters)
$rootScope.$broadcast('stateChanged', 'agents')
} else if (to.includes('ow-')) {
$rootScope.$broadcast('stateChanged', 'overview')
} else if (to.includes('mg-')) {
$rootScope.$broadcast('stateChanged', 'manager')
} else if (to.includes('settings')) {
$rootScope.$broadcast('stateChanged', 'settings')
}
$rootScope.$broadcast('stateChanged', 'agents')
} else if (to.includes('ow-')) {
$rootScope.$broadcast('stateChanged', 'overview')
} else if (to.includes('mg-')) {
$rootScope.$broadcast('stateChanged', 'manager')
} else if (to.includes('settings')) {
$rootScope.$broadcast('stateChanged', 'settings')
}
})

Expand Down

0 comments on commit 6863ca7

Please sign in to comment.