mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-04 13:48:56 +02:00
feat: show rps only for counters (#10361)
This commit is contained in:
parent
c3f1454df7
commit
8455134688
@ -68,15 +68,19 @@ export const ImpactMetricsControls: FC<ImpactMetricsControlsProps> = ({
|
||||
label='Begin at zero'
|
||||
/>
|
||||
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={formData.showRate}
|
||||
onChange={(e) => actions.setShowRate(e.target.checked)}
|
||||
/>
|
||||
}
|
||||
label='Show rate per second'
|
||||
/>
|
||||
{formData.selectedSeries.startsWith('unleash_counter_') ? (
|
||||
<FormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={formData.showRate}
|
||||
onChange={(e) =>
|
||||
actions.setShowRate(e.target.checked)
|
||||
}
|
||||
/>
|
||||
}
|
||||
label='Show rate per second'
|
||||
/>
|
||||
) : null}
|
||||
</Box>
|
||||
{availableLabels && (
|
||||
<LabelsFilter
|
||||
|
Loading…
Reference in New Issue
Block a user