DashboardScene: Add time picker keybindings (#78632)
* grafana/data: Add time range zoom out util
* Add keybindings for time range zoom out
* TimeRangePicker: change the way absolute time range is detected
* Depend on dashboard scene tructure rather
* Revert "grafana/data: Add time range zoom out util"
This reverts commit bc1602db57.
* Lint
* Lint
* dashboardSceneGraph tests
This commit is contained in:
@@ -214,7 +214,7 @@ export const convertRawToRange = (
|
||||
return { from, to, raw: { from, to } };
|
||||
};
|
||||
|
||||
function isRelativeTime(v: DateTime | string) {
|
||||
export function isRelativeTime(v: DateTime | string) {
|
||||
if (typeof v === 'string') {
|
||||
return v.indexOf('now') >= 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user