mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboards: load from storage (#51949)
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user