Grafana-UI: Add time range input (#26158)
* Grafana UI: Do not submit form on range change * Grafana UI: Add TimeRangeInput * Grafana UI: Style input * Grafana UI: Customize content * Grafana UI: Adjust caret style * Grafana UI: Add mdx * Grafana UI: Fix caret styles * Grafana UI: Fix typo * Grafana UI: Do not reload page on timerange change * Grafana UI: Sync TimeRangeForm state with external value * Grafana UI: Close overlay on apply * Grafana UI: Remove unused props * Grafana UI: Fix story * Grafana-UI: Make time zone optional * Grafana-UI: Update styles * Grafana-UI: Extract button label props * Grafana-UI: hideHistory => showHistory * Grafana-UI: Fix caret styles
This commit is contained in:
@@ -203,7 +203,7 @@ export const isValidTimeSpan = (value: string) => {
|
||||
return info.invalid !== true;
|
||||
};
|
||||
|
||||
export const describeTimeRangeAbbrevation = (range: TimeRange, timeZone?: TimeZone) => {
|
||||
export const describeTimeRangeAbbreviation = (range: TimeRange, timeZone?: TimeZone) => {
|
||||
if (isDateTime(range.from)) {
|
||||
return timeZoneAbbrevation(range.from, { timeZone });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user