#10324 added fav menu in network map and visual console

This commit is contained in:
Daniel Cebrian 2023-02-23 11:37:23 +01:00
parent c0dcc03388
commit d6645ee283
3 changed files with 17 additions and 2 deletions

View File

@ -2405,7 +2405,16 @@ if ($networkmap === false) {
$buttons,
false,
'',
$config['item_title_size_text']
$config['item_title_size_text'],
'',
'',
false,
[
'id_element' => $networkmap['id'],
'url' => 'operation/agentes/pandora_networkmap&tab=view&id_networkmap='.$networkmap['id'],
'label' => $networkmap['name'],
'section' => 'Network_map',
]
);
}

View File

@ -484,7 +484,7 @@ if ($favorite_menu !== false) {
$sub2 = [];
}
$sub[$section]['text'] = __($section);
$sub[$section]['text'] = __(str_replace('_', ' ', $section));
$sub[$section]['type'] = 'direct';
$sub[$section]['subtype'] = 'nolink';
$sub[$section]['id'] = $row['section'];

View File

@ -231,6 +231,12 @@ if (is_metaconsole() === false) {
'link' => '',
'label' => __('Visual console'),
],
],
[
'id_element' => $visualConsoleId,
'url' => 'operation/visual_console/render_view&id='.$visualConsoleId,
'label' => $visualConsoleName,
'section' => 'Visual_Console',
]
);
}