13088-Fix button styles in Custom reports & Go back button onclick

This commit is contained in:
Pablo Aragon 2024-03-20 16:22:29 +01:00
parent 6cbe76f02f
commit d92471f068
2 changed files with 17 additions and 5 deletions

View File

@ -319,7 +319,7 @@ $ActionButtons[] = html_print_button(
__('Go back'), __('Go back'),
'back', 'back',
false, false,
"window.location.href = 'index.php?sec=reporting&sec2=godmode/reporting/graphs'", 'history.go(-1)',
[ [
'class' => 'sub ok submitButton', 'class' => 'sub ok submitButton',
'icon' => 'back', 'icon' => 'back',

View File

@ -2860,20 +2860,32 @@ if (is_metaconsole() === true) {
if (!empty($style_button_create_custom_graph)) { if (!empty($style_button_create_custom_graph)) {
$style_create = [ $style_create = [
'mode' => 'link', 'mode' => 'mini',
'icon' => 'next',
'class' => 'mrgn_lft_10px',
'style' => 'display:none', 'style' => 'display:none',
]; ];
} else { } else {
$style_create = [ 'mode' => 'link' ]; $style_create = [
'mode' => 'mini',
'icon' => 'next',
'class' => 'mrgn_lft_10px',
];
} }
if (!empty($style_button_edit_custom_graph)) { if (!empty($style_button_edit_custom_graph)) {
$style_edit = [ $style_edit = [
'mode' => 'link', 'mode' => 'mini',
'icon' => 'update',
'class' => 'mrgn_lft_10px',
'style' => 'display:none', 'style' => 'display:none',
]; ];
} else { } else {
$style_edit = [ 'mode' => 'link' ]; $style_edit = [
'mode' => 'mini',
'icon' => 'update',
'class' => 'mrgn_lft_10px',
];
} }
html_print_button( html_print_button(