diff --git a/src/app/features/dashboard/sharePanelCtrl.js b/src/app/features/dashboard/sharePanelCtrl.js index 88710660e3c..c7303ab1a68 100644 --- a/src/app/features/dashboard/sharePanelCtrl.js +++ b/src/app/features/dashboard/sharePanelCtrl.js @@ -81,17 +81,6 @@ function (angular, _, require, config) { $scope.imageUrl += '&height=500'; }; - $scope.snapshot = function() { - $scope.dashboard.snapshot = true; - $rootScope.$broadcast('refresh'); - - $timeout(function() { - $scope.exportDashboard(); - $scope.dashboard.snapshot = false; - $scope.appEvent('dashboard-snapshot-cleanup'); - }, 1000); - }; - $scope.init(); }); diff --git a/src/app/features/dashboard/shareSnapshotCtrl.js b/src/app/features/dashboard/shareSnapshotCtrl.js index 6f4e21cd70d..88247e3138b 100644 --- a/src/app/features/dashboard/shareSnapshotCtrl.js +++ b/src/app/features/dashboard/shareSnapshotCtrl.js @@ -21,7 +21,7 @@ function (angular) { var dash = angular.copy($scope.dashboard); dash.title = $scope.snapshot.name; - dash.forEachPanel(function(panel){ + dash.forEachPanel(function(panel) { panel.targets = []; panel.links = []; });