|
@@ -8,10 +8,7 @@ define([
|
|
|
function (angular, $, config, _) {
|
|
function (angular, $, config, _) {
|
|
|
"use strict";
|
|
"use strict";
|
|
|
|
|
|
|
|
- var module = angular.module('grafana.controllers');
|
|
|
|
|
-
|
|
|
|
|
- module.controller('DashCtrl', function(
|
|
|
|
|
- $scope, $rootScope, dashboardKeybindings, filterSrv, dashboardSrv, panelMoveSrv, timer) {
|
|
|
|
|
|
|
+ module.controller('DashCtrl', function($scope, $rootScope, dashboardKeybindings, filterSrv, dashboardSrv, panelMoveSrv, timer) {
|
|
|
|
|
|
|
|
$scope.editor = { index: 0 };
|
|
$scope.editor = { index: 0 };
|
|
|
$scope.panelNames = config.panels;
|
|
$scope.panelNames = config.panels;
|
|
@@ -49,10 +46,6 @@ function (angular, $, config, _) {
|
|
|
|
|
|
|
|
dashboardKeybindings.shortcuts($scope);
|
|
dashboardKeybindings.shortcuts($scope);
|
|
|
|
|
|
|
|
- if ($scope.dashboard.$state.panelId) {
|
|
|
|
|
- $rootScope.fullscreen = true;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
$scope.emitAppEvent("dashboard-loaded", $scope.dashboard);
|
|
$scope.emitAppEvent("dashboard-loaded", $scope.dashboard);
|
|
|
};
|
|
};
|
|
|
|
|
|