NavBar ExtensionsRegistryProvider stopped working in kibana 7.4

Does anyone know if the function for NavBarExtensionsRegistryProvider changed in 7.4? my code worked in 7.2 and looked like this:

function navbarButtonProvider(Private, $location, dashboardConfig) {
	//discover, visualize, dashboard, devtools
	return {
		appName: 'dashboard',
		key: 'test-function',
		label: 'Test Function',
		run: () => { test() },
	};
}

NavBarExtensionsRegistryProvider.register(navbarButtonProvider);

But now it stopped working. Any help would be great.

Hi @Sincore,

this is a known bug tracked here: https://github.com/elastic/kibana/issues/47822
Unfortunately there is currently no way to do this without modifying the Kibana code and adding the additional nav bar item directly into the discover code.

Work on a fix is already in progress here: https://github.com/elastic/kibana/pull/48542

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.