Merge branch 'visual-console-refactor' of https://brutus.artica.lan:8081/artica/pandorafms into visual-console-refactor

Former-commit-id: 533fa39e930bbeb2b1510671808503684049cd1c
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-24 15:46:37 +02:00
commit 9112b1b685
1 changed files with 4 additions and 12 deletions

View File

@ -192,10 +192,6 @@ final class ModuleGraph extends Item
// Custom graph.
if (empty($customGraphId) === false) {
// TODO: use a custom size.
$width = 180;
$height = 480;
$customGraph = \db_get_row_filter(
'tgraph',
'id_graph',
@ -204,8 +200,8 @@ final class ModuleGraph extends Item
$params = [
'period' => $period,
'width' => $width,
'height' => $height,
'width' => $data['width'],
'height' => $data['height'],
'title' => '',
'unit_name' => null,
'show_alerts' => false,
@ -233,16 +229,12 @@ final class ModuleGraph extends Item
throw new \InvalidArgumentException('missing module Id');
}
// TODO: use a custom size.
$width = 300;
$height = 180;
$params = [
'agent_module_id' => $moduleId,
'period' => $period,
'show_events' => false,
'width' => $width,
'height' => $height,
'width' => $data['width'],
'height' => $data['height'],
'title' => \modules_get_agentmodule_name($moduleId),
'unit' => \modules_get_unit($moduleId),
'only_image' => $imageOnly,