Visual Console Refactor: improved the refresh management
Former-commit-id: d69eccbb2e06dfe70823d1bb1485f349a23089fe
This commit is contained in:
parent
e6741067ff
commit
a82143d72b
|
@ -21,8 +21,10 @@ require_once $config['homedir'].'/include/functions_visual_map.php';
|
|||
|
||||
// Query parameters.
|
||||
$visualConsoleId = (int) get_parameter(!is_metaconsole() ? 'id' : 'id_visualmap');
|
||||
// To hide the menus.
|
||||
$pure = (bool) get_parameter('pure', $config['pure']);
|
||||
$refr = (int) get_parameter('refr', $config['refr']);
|
||||
// Refresh interval in seconds.
|
||||
$refr = (int) get_parameter('refr', $config['vc_refr']);
|
||||
|
||||
// Load Visual Console.
|
||||
use Models\VisualConsole\Container as VisualConsole;
|
||||
|
@ -122,12 +124,20 @@ if ($aclWrite || $aclManage) {
|
|||
).'</a>';
|
||||
}
|
||||
|
||||
$options['view']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'">'.html_print_image('images/operation.png', true, ['title' => __('View')]).'</a>';
|
||||
$options['view']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'">'.html_print_image(
|
||||
'images/operation.png',
|
||||
true,
|
||||
['title' => __('View')]
|
||||
).'</a>';
|
||||
$options['view']['active'] = true;
|
||||
|
||||
if (!is_metaconsole()) {
|
||||
if (!$config['pure']) {
|
||||
$options['pure']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&pure=1">'.html_print_image('images/full_screen.png', true, ['title' => __('Full screen mode')]).'</a>';
|
||||
$options['pure']['text'] = '<a href="index.php?sec=network&sec2=operation/visual_console/render_view&id='.$visualConsoleId.'&pure=1">'.html_print_image(
|
||||
'images/full_screen.png',
|
||||
true,
|
||||
['title' => __('Full screen mode')]
|
||||
).'</a>';
|
||||
ui_print_page_header(
|
||||
$visualConsoleName,
|
||||
'images/visual_console.png',
|
||||
|
@ -145,8 +155,6 @@ if (!is_metaconsole()) {
|
|||
html_print_input_hidden('metaconsole', 1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo '<div id="visual-console-container"></div>';
|
||||
|
||||
if ($pure === true) {
|
||||
|
|
Loading…
Reference in New Issue