Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dashboard] show fullscreen mode when url has fullScreenMode param #196275

Merged
merged 7 commits into from
Oct 24, 2024
1 change: 1 addition & 0 deletions src/plugins/dashboard/common/dashboard_container/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface DashboardContainerInput extends EmbeddableInput {
timeRange?: TimeRange;
timeslice?: [number, number];
refreshInterval?: RefreshInterval;
fullScreenMode?: boolean;
Heenawter marked this conversation as resolved.
Show resolved Hide resolved

// dashboard meta info
title: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ export const initializeDashboard = async ({
query,
filters,
timeRestore,
fullScreenMode,
timeRange: savedTimeRange,
refreshInterval: savedRefreshInterval,
} = initialDashboardInput;
Expand Down Expand Up @@ -327,6 +328,10 @@ export const initializeDashboard = async ({
stopSyncingUnifiedSearchState();
stopSyncingQueryServiceStateWithUrl();
};

if (fullScreenMode != null) {
setTimeout(() => dashboardContainer.setFullScreenMode(fullScreenMode), 500);
}
});
}

Expand Down