File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
components/modals/widgetBuilder Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,7 @@ function AddToDashboardModal({
310
310
? { selected : unselectedReleasesForCharts }
311
311
: undefined
312
312
}
313
+ disableFullscreen
313
314
/>
314
315
315
316
< IndexedEventsSelectionAlert widget = { widget } />
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export function VisualizationStep({
146
146
: undefined
147
147
}
148
148
widgetLegendState = { widgetLegendState }
149
+ disableFullscreen
149
150
/>
150
151
151
152
< IndexedEventsSelectionAlert widget = { widget } />
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ type Props = WithRouterProps & {
68
68
widgetLegendState : WidgetLegendSelectionState ;
69
69
widgetLimitReached : boolean ;
70
70
dashboardFilters ?: DashboardFilters ;
71
+ disableFullscreen ?: boolean ;
71
72
hasEditAccess ?: boolean ;
72
73
index ?: string ;
73
74
isEditingWidget ?: boolean ;
@@ -129,6 +130,7 @@ function WidgetCard(props: Props) {
129
130
onSetTransactionsDataset,
130
131
legendOptions,
131
132
widgetLegendState,
133
+ disableFullscreen,
132
134
} = props ;
133
135
134
136
if ( widget . displayType === DisplayType . TOP_N ) {
@@ -289,7 +291,9 @@ function WidgetCard(props: Props) {
289
291
actionsDisabled = { actionsDisabled }
290
292
actionsMessage = { actionsMessage }
291
293
actions = { actions }
292
- onFullScreenViewClick = { onFullScreenViewClick }
294
+ onFullScreenViewClick = {
295
+ disableFullscreen ? undefined : onFullScreenViewClick
296
+ }
293
297
isLoading = { loading }
294
298
thresholds = { widget . thresholds ?? undefined }
295
299
value = { value }
@@ -311,7 +315,7 @@ function WidgetCard(props: Props) {
311
315
error = { widgetQueryError }
312
316
actionsMessage = { actionsMessage }
313
317
actions = { actions }
314
- onFullScreenViewClick = { onFullScreenViewClick }
318
+ onFullScreenViewClick = { disableFullscreen ? undefined : onFullScreenViewClick }
315
319
>
316
320
< WidgetCardChartContainer
317
321
location = { location }
You can’t perform that action at this time.
0 commit comments