Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
115044: ui: keep timewindow with fixed range after Now button click r=koorosh a=koorosh This change fixes behavior of Now button in TimeScale component. Before, when user selected some custom time range then clicked Now button - it would not update charts because there was inconsistency. Custom time range cannot be with "moving" attribute, it cannot be updated every time to reflect most recent data as custom range has fixed end time. This change checks if current preset is custom and doesn't set "moving" attribute in this case. Epic: None Resolves: #113091 Release note (ui change): proper handling of "Now" button on Time range selector when custom time period was selected before. ![Screen Recording 2023-11-23 at 17 42 09 mov](https://github.com/cockroachdb/cockroach/assets/3106437/a7748ab0-d779-4b55-ad4f-f56493a9e836) Co-authored-by: Andrii Vorobiov <[email protected]>
- Loading branch information