Dashboards: load from storage (#51949)

This commit is contained in:
Ryan McKinley
2022-07-14 15:36:17 -07:00
committed by GitHub
parent eab03aa207
commit da1701ce57
19 changed files with 262 additions and 28 deletions

View File

@@ -87,6 +87,10 @@ async function fetchDashboard(
case DashboardRoutes.New: {
return getNewDashboardModelData(args.urlFolderId, args.panelType);
}
case DashboardRoutes.Path: {
const path = args.urlSlug ?? '';
return await dashboardLoaderSrv.loadDashboard(DashboardRoutes.Path, path, path);
}
default:
throw { message: 'Unknown route ' + args.routeName };
}