mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 10:50:37 -06:00
fix(graphite editor): fixed moving functions right and left, broken recently, fixes #3246
This commit is contained in:
parent
a6623357ad
commit
31c317f5f7
@ -208,7 +208,7 @@ function (angular, _, $) {
|
||||
|
||||
if ($target.hasClass('fa-arrow-left')) {
|
||||
$scope.$apply(function() {
|
||||
_.move($scope.functions, $scope.$index, $scope.$index - 1);
|
||||
_.move(ctrl.functions, $scope.$index, $scope.$index - 1);
|
||||
ctrl.targetChanged();
|
||||
});
|
||||
return;
|
||||
@ -216,7 +216,7 @@ function (angular, _, $) {
|
||||
|
||||
if ($target.hasClass('fa-arrow-right')) {
|
||||
$scope.$apply(function() {
|
||||
_.move($scope.functions, $scope.$index, $scope.$index + 1);
|
||||
_.move(ctrl.functions, $scope.$index, $scope.$index + 1);
|
||||
ctrl.targetChanged();
|
||||
});
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user