diff --git a/src/app/controllers/row.js b/src/app/controllers/row.js index d2f87e029cc..314559405ea 100644 --- a/src/app/controllers/row.js +++ b/src/app/controllers/row.js @@ -124,4 +124,17 @@ function (angular, app, _) { }; }); + module.directive('panelDropZone', function() { + return function(scope, element) { + scope.$watch('dashboard.$$panelDragging', function(newVal) { + if (newVal && scope.dashboard.rowSpan(scope.row) < 10) { + element.show(); + } + else { + element.hide(); + } + }); + }; + }); + }); diff --git a/src/app/panels/graph/module.html b/src/app/panels/graph/module.html index 385ba8b79a0..102cad84a40 100644 --- a/src/app/panels/graph/module.html +++ b/src/app/panels/graph/module.html @@ -1,5 +1,4 @@ -