Commit c004532c by Torkel Ödegaard

added height setting to 200px when in full edit mode

parent 16b0d797
......@@ -53,13 +53,12 @@ function (angular, _, config) {
})
.then(null, function(err) {
$scope.errorText = err;
deferred.reject(err);
});
};
function saveMetricsArray(data, currentIndex)
{
if (!data && !data.data && !data.data.length == 0) {
if (!data && !data.data && data.data.length === 0) {
return $q.reject('No metrics from graphite');
}
......
......@@ -32,23 +32,6 @@
.form-inline .checkbox {
display: inline-block;
}
.full-edit-mode {
//display: none;
}
.panel-full-edit-mode {
z-index: 1500;
display: block;
position: fixed;
left: 20px;
right: 20px;
top: 100px;
outline: 1px solid #101214;
border-top: 1px solid #3e444c;
padding: 0 10px 10px 10px;
background: #202328;
}
</style>
<div>
<span ng-show='panel.options'>
......
......@@ -383,13 +383,17 @@ function (angular, app, $, _, kbn, moment, timeSeries, graphiteSrv, RQ) {
$scope.openConfigureModal = function($event) {
$event.preventDefault();
$event.stopPropagation();
var oldHeight = $scope.row.height;
$scope.row.height = 200;
var closeEditMode = $rootScope.$on('fullEditMode', function(evt, enabled) {
$scope.inEditMode = enabled;
if (!enabled) {
$scope.row.height = oldHeight;
closeEditMode();
}
setTimeout(function() {
$scope.$emit('render');
}, 200);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -63,4 +63,21 @@
position: absolute;
text-align: center;
font-size: 12px;
}
\ No newline at end of file
}
.full-edit-mode {
//display: none;
}
.panel-full-edit-mode {
z-index: 1500;
display: block;
position: fixed;
left: 20px;
right: 20px;
top: 25px;
outline: 1px solid #101214;
border-top: 1px solid #3e444c;
padding: 0 10px 10px 10px;
background: #202328;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment