Merge branch 'sidemenu_default_open' of https://github.com/raintank/grafana

This commit is contained in:
Torkel Ödegaard
2015-05-05 20:34:07 +02:00
3 changed files with 17 additions and 3 deletions

View File

@@ -36,7 +36,9 @@ function (angular, _, kbn, moment, $) {
});
module.controller('DashFromSnapshotCtrl', function($scope, $routeParams, backendSrv) {
module.controller('DashFromSnapshotCtrl', function($scope, $routeParams, backendSrv, contextSrv) {
//don't show the sidemenu in snapshots.
contextSrv.sidemenu = false;
backendSrv.get('/api/snapshots/' + $routeParams.key).then(function(result) {
$scope.initDashboard(result, $scope);
}, function() {