mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
check that we're on the kibana app
instead of checking that we're not on the status page
This commit is contained in:
parent
d04c50feab
commit
299e6631a4
1 changed files with 6 additions and 6 deletions
|
@ -28,9 +28,9 @@ define(function (require) {
|
|||
})
|
||||
.then(function () {
|
||||
if (testStatusPage !== false) {
|
||||
return self.checkForStatusPage()
|
||||
.then(function (onStatusPage) {
|
||||
if (onStatusPage) throw new Error('Hit status page, retrying');
|
||||
return self.checkForKibanaApp()
|
||||
.then(function (kibanaLoaded) {
|
||||
if (!kibanaLoaded) throw new Error('Kibana is not loaded, retrying');
|
||||
});
|
||||
}
|
||||
})
|
||||
|
@ -97,14 +97,14 @@ define(function (require) {
|
|||
});
|
||||
},
|
||||
|
||||
checkForStatusPage: function () {
|
||||
checkForKibanaApp: function () {
|
||||
var self = this;
|
||||
|
||||
self.debug('Checking for status page');
|
||||
self.debug('Checking for kibana app');
|
||||
return self.getApp()
|
||||
.then(function (app) {
|
||||
self.debug('current app: ' + app.id);
|
||||
return app.id === 'statusPage';
|
||||
return app.id === 'kibana';
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue