improve default time ranges (#100536)

This commit is contained in:
Joe Reuter 2021-05-26 15:17:03 +02:00 committed by GitHub
parent 638ab8247b
commit e7bc8831c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -605,35 +605,35 @@ export function getUiSettings(): Record<string, UiSettingsParams<unknown>> {
}),
},
{
from: 'now-24h',
from: 'now-24h/h',
to: 'now',
display: i18n.translate('data.advancedSettings.timepicker.last24Hours', {
defaultMessage: 'Last 24 hours',
}),
},
{
from: 'now-7d',
from: 'now-7d/d',
to: 'now',
display: i18n.translate('data.advancedSettings.timepicker.last7Days', {
defaultMessage: 'Last 7 days',
}),
},
{
from: 'now-30d',
from: 'now-30d/d',
to: 'now',
display: i18n.translate('data.advancedSettings.timepicker.last30Days', {
defaultMessage: 'Last 30 days',
}),
},
{
from: 'now-90d',
from: 'now-90d/d',
to: 'now',
display: i18n.translate('data.advancedSettings.timepicker.last90Days', {
defaultMessage: 'Last 90 days',
}),
},
{
from: 'now-1y',
from: 'now-1y/d',
to: 'now',
display: i18n.translate('data.advancedSettings.timepicker.last1Year', {
defaultMessage: 'Last 1 year',