|
@@ -10,19 +10,19 @@ function (angular, config, _, $, store) {
|
|
|
|
|
|
|
|
var module = angular.module('grafana.controllers');
|
|
var module = angular.module('grafana.controllers');
|
|
|
|
|
|
|
|
- module.controller('GrafanaCtrl', function($scope, alertSrv, grafanaVersion, $rootScope, $controller) {
|
|
|
|
|
|
|
+ module.controller('GrafanaCtrl', function($scope, alertSrv, utilSrv, grafanaVersion, $rootScope, $controller) {
|
|
|
|
|
|
|
|
$scope.grafanaVersion = grafanaVersion[0] === '@' ? 'master' : grafanaVersion;
|
|
$scope.grafanaVersion = grafanaVersion[0] === '@' ? 'master' : grafanaVersion;
|
|
|
- $scope.consoleEnabled = store.getBool('grafanaConsole');
|
|
|
|
|
-
|
|
|
|
|
|
|
+ $scope._ = _;
|
|
|
$rootScope.profilingEnabled = store.getBool('profilingEnabled');
|
|
$rootScope.profilingEnabled = store.getBool('profilingEnabled');
|
|
|
$rootScope.performance = { loadStart: new Date().getTime() };
|
|
$rootScope.performance = { loadStart: new Date().getTime() };
|
|
|
|
|
|
|
|
$scope.init = function() {
|
|
$scope.init = function() {
|
|
|
- $scope._ = _;
|
|
|
|
|
-
|
|
|
|
|
if ($rootScope.profilingEnabled) { $scope.initProfiling(); }
|
|
if ($rootScope.profilingEnabled) { $scope.initProfiling(); }
|
|
|
|
|
|
|
|
|
|
+ alertSrv.init();
|
|
|
|
|
+ utilSrv.init();
|
|
|
|
|
+
|
|
|
$scope.dashAlerts = alertSrv;
|
|
$scope.dashAlerts = alertSrv;
|
|
|
$scope.grafana = { style: 'dark' };
|
|
$scope.grafana = { style: 'dark' };
|
|
|
};
|
|
};
|