mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Fix cluster view
This commit is contained in:
parent
c3ead62b4a
commit
6086cdf9d3
@ -34,7 +34,7 @@ const app = uiModules.get('app/wazuh', ['ngCookies', 'ngMaterial']);
|
||||
|
||||
app.config([
|
||||
'$compileProvider',
|
||||
function($compileProvider) {
|
||||
function ($compileProvider) {
|
||||
$compileProvider.aHrefSanitizationWhitelist(
|
||||
/^\s*(https?|ftp|mailto|data|blob):/
|
||||
);
|
||||
@ -43,12 +43,12 @@ app.config([
|
||||
|
||||
app.config([
|
||||
'$httpProvider',
|
||||
function($httpProvider) {
|
||||
function ($httpProvider) {
|
||||
$httpProvider.useApplyAsync(true);
|
||||
}
|
||||
]);
|
||||
|
||||
app.run(function($rootScope, $route, $location, appState, $window) {
|
||||
app.run(function ($rootScope, $route, $location, appState, $window) {
|
||||
appState.setNavigation({ status: false });
|
||||
appState.setNavigation({
|
||||
reloaded: false,
|
||||
@ -73,7 +73,7 @@ app.run(function($rootScope, $route, $location, appState, $window) {
|
||||
}
|
||||
} else {
|
||||
if (!navigation.status && navigation.prevLocation) {
|
||||
if (!navigation.discoverSections.includes(navigation.currLocation)) {
|
||||
if (!navigation.discoverSections.includes(navigation.currLocation) && $location.search().tabView !== 'cluster-monitoring') {
|
||||
appState.setNavigation({ reloaded: true });
|
||||
$location.search('configSubTab', null);
|
||||
$location.search('editingFile', null);
|
||||
@ -91,7 +91,7 @@ app.run(function($rootScope, $route, $location, appState, $window) {
|
||||
} else {
|
||||
$window.history.pushState({ page: 'wazuh#' + navigation.discoverPrevious }, '', 'wazuh#' + navigation.discoverPrevious);
|
||||
}
|
||||
} else {
|
||||
} else if (navigation.currLocation === navigation.discoverSections[0]) {
|
||||
$window.history.pushState(
|
||||
{ page: 'wazuh#' + navigation.discoverPrevious },
|
||||
'',
|
||||
@ -103,6 +103,17 @@ app.run(function($rootScope, $route, $location, appState, $window) {
|
||||
'',
|
||||
'/app/wazuh#' + $location.$$url
|
||||
);
|
||||
} else if ($location.search().tabView === 'cluster-monitoring') {
|
||||
$window.history.pushState(
|
||||
{ page: '/app/wazuh#/manager//' },
|
||||
'',
|
||||
'/app/wazuh#/manager//'
|
||||
);
|
||||
$window.history.pushState(
|
||||
{ page: '/app/wazuh#' + $location.$$url },
|
||||
'',
|
||||
'/app/wazuh#' + $location.$$url
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user