From 413c2e8424b2d6e10e8b6d73178e250e9527bd02 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 13 Mar 2024 17:19:55 +0100 Subject: [PATCH 1/3] #13010 Fixed services --- pandora_console/godmode/reporting/map_builder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 6dbb6a1dbf..3cd0963a44 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -553,6 +553,10 @@ if (!$maps && is_metaconsole() === false) { ['class' => 'main_menu_icon invert_filter'] ).''; } else { + $table->cellclass[] = [ + 3 => 'table_action_buttons', + 4 => 'table_action_buttons', + ]; $data[3] = ''.html_print_image( 'images/copy.svg', true, From 75eb8e255867e61f2fedb8d56cfe5f9dbf784dab Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 18 Mar 2024 08:58:52 +0100 Subject: [PATCH 2/3] #13010 Fixed services 2 --- .../godmode/reporting/visual_console_builder.wizard.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.wizard.php b/pandora_console/godmode/reporting/visual_console_builder.wizard.php index 6a54b2c049..83c913efdf 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.wizard.php +++ b/pandora_console/godmode/reporting/visual_console_builder.wizard.php @@ -145,6 +145,11 @@ $table->data['all_0'][0] = html_print_label_input_block( $table->rowstyle['staticgraph'] = 'display: none;'; $table->colspan['staticgraph'][0] = 2; +$src = $config['homeurl'].'/images/console/icons/appliance_ok.png'; +if (is_metaconsole() === true) { + $src = $config['homeurl'].'../../images/console/icons/appliance_ok.png'; +} + $table->data['staticgraph'][0] = html_print_label_input_block( __('Image'), '
'.html_print_select( @@ -160,7 +165,7 @@ $table->data['staticgraph'][0] = html_print_label_input_block( '', false, 'width: 49%' - ).'
' + ).'' ); $table->rowstyle['all_1'] = 'display: none;'; From e5e857116b27a982f266e658613587b4ee5ba6fb Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Mon, 18 Mar 2024 12:23:45 +0100 Subject: [PATCH 3/3] #13010 Fixed services 3 --- .../reporting/visual_console_builder.wizard.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.wizard.php b/pandora_console/godmode/reporting/visual_console_builder.wizard.php index 83c913efdf..24b0c3f9bf 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.wizard.php +++ b/pandora_console/godmode/reporting/visual_console_builder.wizard.php @@ -907,10 +907,15 @@ function findInSelect(selectid, find){ }) } -$('#image').on('change', function(){ +$('#image').on('change', function() { var img = $(this).val(); - $('#image_prev').html(''); -}) + var src = ""+`/images/console/icons/${img}.png`; + if (metaconsole_enabled) { + src = ""+`../../images/console/icons/${img}.png`; + } + + $('#image_prev').html(``); +});