mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55: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')) {
|
if ($target.hasClass('fa-arrow-left')) {
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
_.move($scope.functions, $scope.$index, $scope.$index - 1);
|
_.move(ctrl.functions, $scope.$index, $scope.$index - 1);
|
||||||
ctrl.targetChanged();
|
ctrl.targetChanged();
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
@ -216,7 +216,7 @@ function (angular, _, $) {
|
|||||||
|
|
||||||
if ($target.hasClass('fa-arrow-right')) {
|
if ($target.hasClass('fa-arrow-right')) {
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
_.move($scope.functions, $scope.$index, $scope.$index + 1);
|
_.move(ctrl.functions, $scope.$index, $scope.$index + 1);
|
||||||
ctrl.targetChanged();
|
ctrl.targetChanged();
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user