chore(plugins): Update dropdown control for BigNumber with Time Comparison range (#27090)

This commit is contained in:
Antonio Rivero 2024-02-13 18:35:31 +01:00 committed by GitHub
parent e4a723d840
commit a912fafb6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 3 deletions

View File

@ -61,15 +61,21 @@ const config: ControlPanelConfig = {
config: {
type: 'SelectControl',
label: t('Range for Comparison'),
default: 'y',
default: 'r',
choices: [
['r', 'Inherit range from time filters'],
['y', 'Year'],
['w', 'Week'],
['m', 'Month'],
['r', 'Range'],
['w', 'Week'],
['c', 'Custom'],
],
rerender: ['adhoc_custom'],
description: t(
'Set the time range that will be used for the comparison metrics. ' +
'For example, "Year" will compare to the same dates one year earlier. ' +
'Use "Inherit range from time filters" to shift the comparison time range' +
'by the same length as your time range and use "Custom" to set a custom comparison range.',
),
},
},
],