Visual Console Refactor: minor fixes

Former-commit-id: e1562bc91ab07db21ae41c4eed6bb8bea0990d62
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-10 11:54:01 +02:00
parent d9271bb249
commit 00dbb83cfe
2 changed files with 4 additions and 15 deletions

View File

@ -43,6 +43,7 @@ final class Percentile extends Item
$return['type'] = PERCENTILE_BAR;
$return['percentileType'] = static::extractPercentileType($data);
$return['valueType'] = static::extractValueType($data);
// TODO: Add min value to the database.
$return['minValue'] = static::parseFloatOr(
static::issetInArray($data, ['minValue']),
null
@ -232,15 +233,6 @@ final class Percentile extends Item
$data['unit'] = \io_safe_output($unit);
}
// TODO: Add min value to the database.
// Extract max value.
if (isset($data['maxValue']) === false) {
$data['maxValue'] = static::parseFloatOr(
static::issetInArray($data, ['height']),
null
);
}
// Restore connection.
if ($nodeConnected === true) {
\metaconsole_restore_db();

View File

@ -205,16 +205,13 @@ if ($pure === true) {
margin: 0px;
overflow: hidden;
height: 100%;
<?php
echo 'background-color: '.$layout['background_color'].';';
?>
background-color: <?php echo $layout['background_color']; ?>;
}
div#main_pure {
height: 100%;
margin: 0px;
<?php
echo 'background-color: '.$layout['background_color'].';';
?>
background-color: <?php echo $layout['background_color']; ?>;
}
</style>
<?php