mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
added comment to initDashboard
This commit is contained in:
parent
3d5ca99d53
commit
e4c92ae124
@ -46,6 +46,15 @@ async function redirectToNewUrl(slug: string, dispatch: any, currentPath: string
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This action (or saga) does everything needed to bootstrap a dashboard & dashboard model.
|
||||
* First it handles the process of fetching the dashboard, correcting the url if required (causing redirects/url updates)
|
||||
*
|
||||
* This is used both for single dashboard & solo panel routes, home & new dashboard routes.
|
||||
*
|
||||
* Then it handles the initializing of the old angular services that the dashboard components & panels still depend on
|
||||
*
|
||||
*/
|
||||
export function initDashboard({
|
||||
$injector,
|
||||
$scope,
|
||||
|
Loading…
Reference in New Issue
Block a user