Visual Console Refactor: minor fixes
Former-commit-id: e1562bc91ab07db21ae41c4eed6bb8bea0990d62
This commit is contained in:
parent
d9271bb249
commit
00dbb83cfe
|
@ -43,6 +43,7 @@ final class Percentile extends Item
|
||||||
$return['type'] = PERCENTILE_BAR;
|
$return['type'] = PERCENTILE_BAR;
|
||||||
$return['percentileType'] = static::extractPercentileType($data);
|
$return['percentileType'] = static::extractPercentileType($data);
|
||||||
$return['valueType'] = static::extractValueType($data);
|
$return['valueType'] = static::extractValueType($data);
|
||||||
|
// TODO: Add min value to the database.
|
||||||
$return['minValue'] = static::parseFloatOr(
|
$return['minValue'] = static::parseFloatOr(
|
||||||
static::issetInArray($data, ['minValue']),
|
static::issetInArray($data, ['minValue']),
|
||||||
null
|
null
|
||||||
|
@ -232,15 +233,6 @@ final class Percentile extends Item
|
||||||
$data['unit'] = \io_safe_output($unit);
|
$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.
|
// Restore connection.
|
||||||
if ($nodeConnected === true) {
|
if ($nodeConnected === true) {
|
||||||
\metaconsole_restore_db();
|
\metaconsole_restore_db();
|
||||||
|
|
|
@ -205,16 +205,13 @@ if ($pure === true) {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
<?php
|
background-color: <?php echo $layout['background_color']; ?>;
|
||||||
echo 'background-color: '.$layout['background_color'].';';
|
|
||||||
?>
|
|
||||||
}
|
}
|
||||||
div#main_pure {
|
div#main_pure {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
<?php
|
background-color: <?php echo $layout['background_color']; ?>;
|
||||||
echo 'background-color: '.$layout['background_color'].';';
|
|
||||||
?>
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue