@@ -108,11 +108,13 @@ import ReleaseWidgetQueries from 'sentry/views/dashboards/widgetCard/releaseWidg
108
108
import { WidgetCardChartContainer } from 'sentry/views/dashboards/widgetCard/widgetCardChartContainer' ;
109
109
import WidgetQueries from 'sentry/views/dashboards/widgetCard/widgetQueries' ;
110
110
import type WidgetLegendSelectionState from 'sentry/views/dashboards/widgetLegendSelectionState' ;
111
+ import { ALLOWED_CELL_ACTIONS } from 'sentry/views/dashboards/widgets/common/settings' ;
111
112
import { TableWidgetVisualization } from 'sentry/views/dashboards/widgets/tableWidget/tableWidgetVisualization' ;
112
113
import {
113
114
convertTableDataToTabularData ,
114
115
decodeColumnAliases ,
115
116
} from 'sentry/views/dashboards/widgets/tableWidget/utils' ;
117
+ import { Actions } from 'sentry/views/discover/table/cellAction' ;
116
118
import { decodeColumnOrder } from 'sentry/views/discover/utils' ;
117
119
import { MetricsDataSwitcher } from 'sentry/views/performance/landing/metricsDataSwitcher' ;
118
120
@@ -1373,6 +1375,14 @@ function ViewerTableV2({
1373
1375
) ;
1374
1376
}
1375
1377
1378
+ let cellActions : Actions [ ] = [ ] ;
1379
+ if ( organization . features . includes ( 'discover-cell-actions-v2' ) ) {
1380
+ cellActions =
1381
+ tableWidget . widgetType === WidgetType . SPANS
1382
+ ? [ ...ALLOWED_CELL_ACTIONS , Actions . OPEN_ROW_IN_EXPLORE ]
1383
+ : ALLOWED_CELL_ACTIONS ;
1384
+ }
1385
+
1376
1386
return (
1377
1387
< Fragment >
1378
1388
< TableWidgetVisualization
@@ -1402,7 +1412,7 @@ function ViewerTableV2({
1402
1412
eventView,
1403
1413
} satisfies RenderFunctionBaggage ;
1404
1414
} }
1405
- allowedCellActions = { [ ] }
1415
+ allowedCellActions = { cellActions }
1406
1416
/>
1407
1417
{ ! (
1408
1418
tableWidget . queries [ 0 ] ! . orderby . match ( / ^ - ? r e l e a s e $ / ) &&
0 commit comments