Minor fix

This commit is contained in:
Jose Gonzalez 2023-02-24 13:49:15 +01:00
parent 5477fdbb6c
commit 47a433c312
1 changed files with 13 additions and 9 deletions

View File

@ -459,16 +459,20 @@ function treeview_printAlertsTable($id_module, $server_data=[], $no_head=false)
html_print_table($table2); html_print_table($table2);
if ($user_access_node && check_acl($config['id_user'], $id_group, 'LW')) { if ($user_access_node && check_acl($config['id_user'], $id_group, 'LW')) {
// Actions table // Actions button.
echo '<div class="w100p right_align">'; html_print_div(
html_print_button( [
__('Go to alerts edition'), 'class' => 'action-buttons',
'upd_button', 'content' => html_print_button(
false, __('Go to alerts edition'),
'window.location.assign("'.$console_url.'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&search=1&module_name='.$module_name.'&id_agente='.$agent_id.$url_hash.'")', 'upd_button',
['icon' => 'alert'] false,
'window.location.assign(\''.$console_url.'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&search=1&module_name='.$module_name.'&id_agente='.$agent_id.$url_hash.'\')',
['icon' => 'alert'],
true
),
]
); );
echo '</div>';
} }
if (empty($server_data) === false && is_metaconsole() === true) { if (empty($server_data) === false && is_metaconsole() === true) {