Commit 4d13a5bf by Torkel Ödegaard

Fixed failing style check

parent 7614ddb3
...@@ -81,17 +81,6 @@ function (angular, _, require, config) { ...@@ -81,17 +81,6 @@ function (angular, _, require, config) {
$scope.imageUrl += '&height=500'; $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(); $scope.init();
}); });
......
...@@ -21,7 +21,7 @@ function (angular) { ...@@ -21,7 +21,7 @@ function (angular) {
var dash = angular.copy($scope.dashboard); var dash = angular.copy($scope.dashboard);
dash.title = $scope.snapshot.name; dash.title = $scope.snapshot.name;
dash.forEachPanel(function(panel){ dash.forEachPanel(function(panel) {
panel.targets = []; panel.targets = [];
panel.links = []; panel.links = [];
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment