Skip to content

Commit

Permalink
update DashboardState to extend from DashboardOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Dec 5, 2024
1 parent 31496cd commit 6073680
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/plugins/dashboard/public/dashboard_api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export interface DashboardCreationOptions {
getEmbeddableAppContext?: (dashboardId?: string) => EmbeddableAppContext;
}

export interface DashboardState {
export interface DashboardState extends DashboardOptions {
// filter context to be passed to children
query: Query;
filters: Filter[];
Expand All @@ -107,12 +107,7 @@ export interface DashboardState {
viewMode: ViewMode;
description?: string;

// settings
hidePanelTitles: DashboardOptions['hidePanelTitles'];
syncTooltips: DashboardOptions['syncTooltips'];
useMargins: DashboardOptions['useMargins'];
syncColors: DashboardOptions['syncColors'];
syncCursor: DashboardOptions['syncCursor'];
// settings from DashboardOptions

// dashboard contents
panels: DashboardPanelMap;
Expand Down

0 comments on commit 6073680

Please sign in to comment.