mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
chore: show display switcher on dashboard page (#1062)
This commit is contained in:
parent
5ad14554e4
commit
823566f3ce
2 changed files with 15 additions and 1 deletions
5
.changeset/cyan-camels-check.md
Normal file
5
.changeset/cyan-camels-check.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
chore: show display switcher on dashboard page
|
||||
|
|
@ -320,9 +320,18 @@ const Tile = forwardRef(
|
|||
queriedConfig?.displayType === DisplayType.StackedBar) && (
|
||||
<DBTimeChart
|
||||
sourceId={chart.config.source}
|
||||
showDisplaySwitcher={false}
|
||||
showDisplaySwitcher={true}
|
||||
config={queriedConfig}
|
||||
onTimeRangeSelect={onTimeRangeSelect}
|
||||
setDisplayType={displayType => {
|
||||
onUpdateChart?.({
|
||||
...chart,
|
||||
config: {
|
||||
...chart.config,
|
||||
displayType,
|
||||
},
|
||||
});
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{queriedConfig?.displayType === DisplayType.Table && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue