diff --git a/src/app/panels/overview/module.js b/src/app/panels/overview/module.js
index 4026cca613e..0a3521a0566 100644
--- a/src/app/panels/overview/module.js
+++ b/src/app/panels/overview/module.js
@@ -1,7 +1,7 @@
define([
'angular',
'app',
- 'underscore',
+ 'lodash',
'../graph/timeSeries',
'services/panelSrv',
],
diff --git a/src/app/partials/solo-panel.html b/src/app/partials/solo-panel.html
index 1610a101097..f349d32a716 100644
--- a/src/app/partials/solo-panel.html
+++ b/src/app/partials/solo-panel.html
@@ -1,7 +1,8 @@
-
-
diff --git a/src/app/routes/solo-panel-route.js b/src/app/routes/solo-panel-route.js
index e68f3d28a54..653ebdb31d6 100644
--- a/src/app/routes/solo-panel-route.js
+++ b/src/app/routes/solo-panel-route.js
@@ -14,28 +14,32 @@ function (angular) {
});
});
- module.controller('SoloPanelCtrl', function($scope, $rootScope, datasourceSrv, $routeParams, alertSrv, dashboard) {
+ module.controller('SoloPanelCtrl', function($scope, $rootScope, datasourceSrv, $routeParams, alertSrv, dashboardSrv, filterSrv) {
var db = datasourceSrv.getGrafanaDB();
db.getDashboard($routeParams.id, false)
- .then(function(dashboard) {
- $scope.initPanelScope(dashboard);
+ .then(function(dashboardData) {
+ $scope.initPanelScope(dashboardData);
}).then(null, function(error) {
alertSrv.set('Error', error, 'error');
});
+
+ $scope.initPanelScope = function(dashboardData) {
+ $scope.dashboard = dashboardSrv.create(dashboardData);
+ $scope.grafana.style = $scope.dashboard.style;
+ $scope.row = {
+ height: '300px',
+ };
+ $scope.test = "Hej";
+ $scope.$index = 0;
+ $scope.panel = $scope.dashboard.rows[0].panels[0];
+ $scope.panel.span = 12;
+
+ $scope.filter = filterSrv;
+ $scope.filter.init($scope.dashboard);
+ };
+
});
-
- $scope.initPanelScope = function(dashboard){
- $scope.dashboard = dashboard.create(dashboardData);
- $scope.grafana.style = $scope.dashboard.style;
-
- $scope.filter = filterSrv;
- $scope.filter.init($scope.dashboard);
-
-
- };
-
-
});