mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[dashboard] fix Chrome no longer hidden for reports (#206988)
Fixes https://github.com/elastic/kibana/issues/205794 https://github.com/elastic/kibana/pull/196275 removed `setIsVisible` because https://github.com/elastic/kibana/pull/196275/files#r1811034594. I could not reproduce the top nav disappearing and reappearing issue. --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
f4df5856f2
commit
583b852251
1 changed files with 7 additions and 0 deletions
|
@ -118,6 +118,13 @@ export function InternalDashboardTopNav({
|
|||
dashboardTitleRef.current?.focus();
|
||||
}, [title, viewMode]);
|
||||
|
||||
/*
|
||||
* Manage chrome visibility when dashboard is in print mode.
|
||||
*/
|
||||
useEffect(() => {
|
||||
if (!embedSettings && viewMode === 'print') coreServices.chrome.setIsVisible(false);
|
||||
}, [embedSettings, viewMode]);
|
||||
|
||||
/**
|
||||
* populate recently accessed, and set is chrome visible.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue