Skip to content

Commit

Permalink
[console_extensions] disable when console is disabled (#18673)
Browse files Browse the repository at this point in the history
* [console_extensions] disable when console is disabled

* [console extensions] has console and enabled

* [console_extensions] fix console_extensions.enabled
  • Loading branch information
jbudz authored May 1, 2018
1 parent 5de2042 commit 1eef045
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions x-pack/plugins/console_extensions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ export function consoleExtensions(kibana) {
return new kibana.Plugin({
id: 'console_extensions',
require: ['kibana', 'console'],
isEnabled(config) {
return (
config.get('console_extensions.enabled') &&
config.has('console.enabled') &&
config.get('console.enabled')
);
},

config(Joi) {
return Joi.object({
enabled: Joi.boolean().default(true),
}).default();
},

init: server => {
if (
server.plugins.console &&
Expand Down

0 comments on commit 1eef045

Please sign in to comment.