mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
This commit is contained in:
parent
f897f8a66d
commit
1d10b32d89
1 changed files with 3 additions and 3 deletions
|
@ -10,12 +10,12 @@ import { PLUGIN } from '../../../common/constants';
|
|||
|
||||
export function registerLicenseChecker(server) {
|
||||
const xpackMainPlugin = server.plugins.xpack_main;
|
||||
const watcherPlugin = server.plugins.watcher;
|
||||
const indexManagementPlugin = server.plugins.index_management;
|
||||
|
||||
mirrorPluginStatus(xpackMainPlugin, watcherPlugin);
|
||||
mirrorPluginStatus(xpackMainPlugin, indexManagementPlugin);
|
||||
xpackMainPlugin.status.once('green', () => {
|
||||
// Register a function that is called whenever the xpack info changes,
|
||||
// to re-compute the license check results for this plugin
|
||||
xpackMainPlugin.info.feature(PLUGIN.ID).registerLicenseCheckResultsGenerator(checkLicense);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue