mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[server/uiSettings] react to missing elasticsearch plugin
This commit is contained in:
parent
40ffd12238
commit
7feacf6a70
1 changed files with 5 additions and 0 deletions
|
@ -105,6 +105,11 @@ export default function setupSettings(kbnServer, server, config) {
|
|||
function mirrorEsStatus() {
|
||||
const esStatus = kbnServer.status.getForPluginId('elasticsearch');
|
||||
|
||||
if (!esStatus) {
|
||||
status.red('UI Settings requires the elasticsearch plugin');
|
||||
return;
|
||||
}
|
||||
|
||||
copyStatus();
|
||||
esStatus.on('change', copyStatus);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue