mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panel: fixed duplicate panel, broken after yesterdays panel menu model refactoring
This commit is contained in:
parent
ef92272bee
commit
3aa619b617
@ -94,10 +94,6 @@ function (angular, app, _) {
|
||||
});
|
||||
};
|
||||
|
||||
$scope.duplicatePanel = function(panel, row) {
|
||||
$scope.dashboard.duplicatePanel(panel, row || $scope.row);
|
||||
};
|
||||
|
||||
$scope.reset_panel = function(type) {
|
||||
var defaultSpan = 12;
|
||||
var _as = 12 - $scope.dashboard.rowSpan($scope.row);
|
||||
|
@ -33,6 +33,10 @@ function (angular, _) {
|
||||
$scope.appEvent('show-json-editor', { object: $scope.panel, updateHandler: $scope.replacePanel });
|
||||
};
|
||||
|
||||
$scope.duplicatePanel = function() {
|
||||
$scope.dashboard.duplicatePanel($scope.panel, $scope.row);
|
||||
};
|
||||
|
||||
$scope.updateColumnSpan = function(span) {
|
||||
$scope.panel.span = Math.min(Math.max($scope.panel.span + span, 1), 12);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user