diff --git a/src/app/features/dashboard/rowCtrl.js b/src/app/features/dashboard/rowCtrl.js index 527a29a2ad5..2e18291719d 100644 --- a/src/app/features/dashboard/rowCtrl.js +++ b/src/app/features/dashboard/rowCtrl.js @@ -81,13 +81,13 @@ function (angular, app, _, config) { $scope.$broadcast('render'); }; - $scope.remove_panel_from_row = function(row, panel) { + $scope.removePanel = function(panel) { $scope.appEvent('confirm-modal', { title: 'Are you sure you want to remove this panel?', icon: 'fa-trash', yesText: 'Delete', onConfirm: function() { - row.panels = _.without(row.panels, panel); + $scope.row.panels = _.without($scope.row.panels, panel); } }); }; diff --git a/src/app/features/panel/panelMenu.js b/src/app/features/panel/panelMenu.js index a529dd87b5c..96fcc521f49 100644 --- a/src/app/features/panel/panelMenu.js +++ b/src/app/features/panel/panelMenu.js @@ -20,9 +20,9 @@ function (angular, $, _) { var template = '
'; template += '
'; template += '
'; - template += ''; - template += ''; - template += ''; + template += ''; + template += ''; + template += ''; template += '
'; template += '
'; diff --git a/src/app/features/panel/panelSrv.js b/src/app/features/panel/panelSrv.js index 8113194dfaf..4c5e34cdbfa 100644 --- a/src/app/features/panel/panelSrv.js +++ b/src/app/features/panel/panelSrv.js @@ -41,6 +41,7 @@ function (angular, _, config) { $scope.updateColumnSpan = function(span) { $scope.panel.span = Math.min(Math.max($scope.panel.span + span, 1), 12); + $scope.row.updatePanelSpan() $timeout(function() { $scope.$broadcast('render');