mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
Removing window reload code in favor of the right fix for what is a legacy issue
This commit is contained in:
parent
aa05237c9d
commit
db780bd645
1 changed files with 1 additions and 6 deletions
|
@ -9,7 +9,7 @@ import uiModules from 'ui/modules';
|
|||
|
||||
const chrome = require('ui/chrome')
|
||||
.setRootTemplate(require('plugins/status_page/status_page.html'))
|
||||
.setRootController('ui', function ($http, $window, $scope) {
|
||||
.setRootController('ui', function ($http, $scope) {
|
||||
const ui = this;
|
||||
ui.loading = false;
|
||||
|
||||
|
@ -36,11 +36,6 @@ const chrome = require('ui/chrome')
|
|||
ui.serverState = overall.state;
|
||||
ui.serverStateMessage = overall.title;
|
||||
}
|
||||
|
||||
const statusPageUrl = chrome.addBasePath('/status');
|
||||
if (overall.state === 'green' && $window.location.pathname !== statusPageUrl) {
|
||||
return $window.location.reload();
|
||||
}
|
||||
})
|
||||
.catch(function () {
|
||||
if (ui.fetchError) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue