Merge branch 'ent-7142-Consola-Visual-me-oculta-los-botones' into 'develop'
Ent 7142 consola visual me oculta los botones See merge request artica/pandorafms!4178
This commit is contained in:
commit
043b512cc4
|
@ -1412,6 +1412,14 @@ function graphic_combined_module(
|
|||
$labels = [];
|
||||
$modules = [];
|
||||
foreach ($sources as $source) {
|
||||
$id_agent = agents_get_module_id(
|
||||
$source['id_agent_module']
|
||||
);
|
||||
|
||||
if (!$id_agent) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_metaconsole() === true) {
|
||||
metaconsole_restore_db();
|
||||
$server = metaconsole_get_connection_by_id($source['id_server']);
|
||||
|
@ -1428,9 +1436,6 @@ function graphic_combined_module(
|
|||
array_push($modules, $modulepush);
|
||||
array_push($weights, $source['weight']);
|
||||
if ($source['label'] != '' || $params_combined['labels']) {
|
||||
$id_agent = agents_get_module_id(
|
||||
$source['id_agent_module']
|
||||
);
|
||||
$agent_description = agents_get_description($id_agent);
|
||||
$agent_group = agents_get_agent_group($id_agent);
|
||||
$agent_address = agents_get_address($id_agent);
|
||||
|
|
|
@ -157,6 +157,14 @@ final class DonutGraph extends Item
|
|||
|
||||
if ($isString === true) {
|
||||
$graphData = \get_donut_module_data($moduleId);
|
||||
if (empty($graphData) || $graphData === null) {
|
||||
$aux = [];
|
||||
$aux[0]['tag_name'] = 'No data to show';
|
||||
$aux[0]['color'] = '#aa3333';
|
||||
$aux[0]['value'] = 1;
|
||||
$aux[0]['percent'] = 100;
|
||||
$graphData = $aux;
|
||||
}
|
||||
|
||||
$data['html'] = \d3_donut_graph(
|
||||
(int) $data['id'],
|
||||
|
|
Loading…
Reference in New Issue