|
@@ -10,6 +10,7 @@ import colors from 'app/core/utils/colors';
|
|
|
import { BackendSrv, setBackendSrv } from 'app/core/services/backend_srv';
|
|
import { BackendSrv, setBackendSrv } from 'app/core/services/backend_srv';
|
|
|
import { DatasourceSrv } from 'app/features/plugins/datasource_srv';
|
|
import { DatasourceSrv } from 'app/features/plugins/datasource_srv';
|
|
|
import { configureStore } from 'app/store/configureStore';
|
|
import { configureStore } from 'app/store/configureStore';
|
|
|
|
|
+import { AngularLoader, setAngularLoader } from 'app/core/services/AngularLoader';
|
|
|
|
|
|
|
|
export class GrafanaCtrl {
|
|
export class GrafanaCtrl {
|
|
|
/** @ngInject */
|
|
/** @ngInject */
|
|
@@ -22,11 +23,13 @@ export class GrafanaCtrl {
|
|
|
contextSrv,
|
|
contextSrv,
|
|
|
bridgeSrv,
|
|
bridgeSrv,
|
|
|
backendSrv: BackendSrv,
|
|
backendSrv: BackendSrv,
|
|
|
- datasourceSrv: DatasourceSrv
|
|
|
|
|
|
|
+ datasourceSrv: DatasourceSrv,
|
|
|
|
|
+ angularLoader: AngularLoader
|
|
|
) {
|
|
) {
|
|
|
// sets singleston instances for angular services so react components can access them
|
|
// sets singleston instances for angular services so react components can access them
|
|
|
- configureStore();
|
|
|
|
|
|
|
+ setAngularLoader(angularLoader);
|
|
|
setBackendSrv(backendSrv);
|
|
setBackendSrv(backendSrv);
|
|
|
|
|
+ configureStore();
|
|
|
|
|
|
|
|
$scope.init = () => {
|
|
$scope.init = () => {
|
|
|
$scope.contextSrv = contextSrv;
|
|
$scope.contextSrv = contextSrv;
|