From dc9b47a904b093671b9f65e8fa8aee415bb1d08e Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 20 Sep 2023 13:51:56 +0200 Subject: [PATCH] #12027 tree view quiet mode --- pandora_console/include/class/Tree.class.php | 5 ----- pandora_console/include/functions_treeview.php | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index b4a41c494d..94b9c1b23c 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -960,11 +960,6 @@ class Tree $agent['counters']['not_init'] = 0; } - // Quiet image - if (isset($agent['quiet']) && $agent['quiet']) { - $agent['statusImageHTML'] = ui_print_status_sets('agent_no_monitors_ball.png', __('Quiet'), 1, ['is_tree_view' => 'yes', 'class' => 'status_balls', 'style' => 'background: '.COL_QUIET.';'], '', false); - } - // Children if (empty($agent['children'])) { $agent['children'] = []; diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 025276ecef..47f861314a 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -708,6 +708,13 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) $row['data'] = human_time_description_raw($agent['intervalo']); $table->data['interval'] = $row; + if (isset($agent['quiet']) && $agent['quiet']) { + $row = []; + $row['title'] = __('Quiet mode enabled'); + $row['data'] = ui_print_help_tip(__('This agent would not raise events or alerts'), true); + $table->data['quiet'] = $row; + } + // Comments. $row = []; $row['title'] = __('Description');