diff --git a/src/app/controllers/graphiteTarget.js b/src/app/controllers/graphiteTarget.js index 8db92c3111e..747d430c5f1 100644 --- a/src/app/controllers/graphiteTarget.js +++ b/src/app/controllers/graphiteTarget.js @@ -210,6 +210,21 @@ function (angular, _, config, graphiteFuncs, Parser) { $scope.targetChanged(); }; + $scope.setYAxis = function() { + if ($scope.target.yaxis) { + delete $scope.target.yaxis; + } else { + $scope.target.yaxis = 2; + } + + $scope.get_data(); + }; + + $scope.duplicate = function() { + var clone = angular.copy($scope.target); + $scope.panel.targets.push(clone); + }; + }); module.directive('focusMe', function($timeout, $parse) { diff --git a/src/app/panels/graphite/editor.html b/src/app/panels/graphite/editor.html index 6130cf54476..11984fbe122 100644 --- a/src/app/panels/graphite/editor.html +++ b/src/app/panels/graphite/editor.html @@ -9,10 +9,27 @@ -