DashboardScene: Map timezone and fiscal year to scene model and back (#75715)

* DashboardScene: Map timezone and fiscal year to scene model and back

* weekstart

* update scenes
This commit is contained in:
Torkel Ödegaard
2023-10-03 11:03:53 +02:00
committed by GitHub
parent a2088c0fb0
commit 9201c47e59
8 changed files with 30 additions and 14 deletions

View File

@@ -208,7 +208,13 @@ export function createDashboardSceneFromDashboardModel(oldModel: DashboardModel)
isLazy: true,
children: createSceneObjectsForPanels(oldModel.panels),
}),
$timeRange: new SceneTimeRange(oldModel.time),
$timeRange: new SceneTimeRange({
from: oldModel.time.from,
to: oldModel.time.to,
fiscalYearStartMonth: oldModel.fiscalYearStartMonth,
timeZone: oldModel.timezone,
weekStart: oldModel.weekStart,
}),
$variables: variables,
$behaviors: [
new behaviors.CursorSync({