mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Removed ghost panel
This commit is contained in:
parent
e31a3a64e1
commit
4e97df06a3
@ -169,22 +169,4 @@ function (angular, app, _, config) {
|
||||
};
|
||||
});
|
||||
|
||||
module.directive('panelGhost', function() {
|
||||
return function(scope, element) {
|
||||
function updateWidth() {
|
||||
var spanLeft = 12 - scope.dashboard.rowSpan(scope.row);
|
||||
if (spanLeft > 1) {
|
||||
element.show();
|
||||
element.find('.panel-container').css('height', scope.row.height);
|
||||
element[0].style.width = ((spanLeft / 1.2) * 10) + '%';
|
||||
} else {
|
||||
element.hide();
|
||||
}
|
||||
}
|
||||
|
||||
updateWidth();
|
||||
scope.$on('dashboard-panel-span-updated', updateWidth);
|
||||
};
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -86,14 +86,6 @@
|
||||
<panel-loader type="panel.type" class="panel-margin"></panel-loader>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-ghost" ng-if="!row.panels.length">
|
||||
<div class="panel-container panel-margin">
|
||||
<div class="panel-ghost-list" ng-repeat="(key, value) in panels">
|
||||
<button class="btn btn-inverse" ng-click="add_panel_default(key)"><i class="fa fa-plus"></i> {{value.name}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div panel-drop-zone class="panel panel-drop-zone" ui-on-drop="onDrop($data, row)" data-drop="true">
|
||||
<div class="panel-container" style="background: transparent">
|
||||
<div style="text-align: center">
|
||||
|
Loading…
Reference in New Issue
Block a user