[server/uiSettings] react to missing elasticsearch plugin

This commit is contained in:
spalger 2016-10-19 16:26:44 -07:00
parent 40ffd12238
commit 7feacf6a70

View file

@ -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);