mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[console_extensions] disable when console is disabled (#18673)
* [console_extensions] disable when console is disabled * [console extensions] has console and enabled * [console_extensions] fix console_extensions.enabled
This commit is contained in:
parent
5de204212e
commit
1eef04551d
1 changed files with 14 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue