mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
fixed CV in console mobile metaconsole #8676
This commit is contained in:
parent
0342f2a908
commit
76d8918a4e
@ -4640,12 +4640,15 @@ function ui_print_page_header(
|
|||||||
}
|
}
|
||||||
|
|
||||||
$buffer .= '<span>';
|
$buffer .= '<span>';
|
||||||
|
$buffer .= '<span class="breadcrumbs-title">';
|
||||||
if (empty($alias)) {
|
if (empty($alias)) {
|
||||||
$buffer .= ui_print_truncate_text($title, $numChars);
|
$buffer .= ui_print_truncate_text($title, $numChars);
|
||||||
} else {
|
} else {
|
||||||
$buffer .= ui_print_truncate_text($alias, $numChars);
|
$buffer .= ui_print_truncate_text($alias, $numChars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$buffer .= '</span>';
|
||||||
|
|
||||||
if ($modal && !enterprise_installed()) {
|
if ($modal && !enterprise_installed()) {
|
||||||
$buffer .= "
|
$buffer .= "
|
||||||
<div id='".$message."' class='publienterprise right mrgn_top-2px' title='Community version'><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>
|
<div id='".$message."' class='publienterprise right mrgn_top-2px' title='Community version'><img data-title='".__('Enterprise version not installed')."' class='img_help forced_title' data-use_title_for_force_title='1' src='images/alert_enterprise.png'></div>
|
||||||
|
@ -1306,6 +1306,12 @@ function dashboardLoadVC(settings) {
|
|||||||
parent.removeChild(div);
|
parent.removeChild(div);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// View title.
|
||||||
|
var title = document.querySelector(".ui-title");
|
||||||
|
if (title !== null) {
|
||||||
|
title.textContent = visualConsole.props.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(error) {
|
error: function(error) {
|
||||||
|
@ -734,23 +734,29 @@ class Events
|
|||||||
// --------------Fill the SQL POST-------------------------------
|
// --------------Fill the SQL POST-------------------------------
|
||||||
$sql_post = ' WHERE 1=1 ';
|
$sql_post = ' WHERE 1=1 ';
|
||||||
|
|
||||||
switch ($this->status) {
|
if ($this->status != null) {
|
||||||
case 0:
|
switch ($this->status) {
|
||||||
case 1:
|
case 0:
|
||||||
case 2:
|
case 1:
|
||||||
$sql_post .= ' AND estado = '.$this->status;
|
case 2:
|
||||||
break;
|
$sql_post .= ' AND estado = '.$this->status;
|
||||||
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
$sql_post .= ' AND (estado = 0 OR estado = 2)';
|
$sql_post .= ' AND (estado = 0 OR estado = 2)';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
// Not posible.
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->free_search != '') {
|
if ($this->free_search != '') {
|
||||||
$sql_post .= " AND evento LIKE '%".io_safe_input($this->free_search)."%'";
|
$sql_post .= " AND evento LIKE '%".io_safe_input($this->free_search)."%'";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->severity != -1) {
|
if ($this->severity != null && $this->severity != -1) {
|
||||||
switch ($this->severity) {
|
switch ($this->severity) {
|
||||||
case EVENT_CRIT_WARNING_OR_CRITICAL:
|
case EVENT_CRIT_WARNING_OR_CRITICAL:
|
||||||
$sql_post .= ' AND (criticity = '.EVENT_CRIT_WARNING.' OR
|
$sql_post .= ' AND (criticity = '.EVENT_CRIT_WARNING.' OR
|
||||||
|
@ -221,6 +221,12 @@ $visualConsoleItems = VisualConsole::getItemsFromDB(
|
|||||||
if (title !== null) {
|
if (title !== null) {
|
||||||
title.textContent = newProps.name;
|
title.textContent = newProps.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fullscreen Meta view title.
|
||||||
|
var titleMeta = document.querySelector("div.vc-title-meta");
|
||||||
|
if (titleMeta !== null) {
|
||||||
|
titleMeta.textContent = newProps.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the links.
|
// Change the links.
|
||||||
|
@ -611,7 +611,7 @@ ui_require_css_file('form');
|
|||||||
if (prevProps && prevProps.name != newProps.name) {
|
if (prevProps && prevProps.name != newProps.name) {
|
||||||
// View title.
|
// View title.
|
||||||
var title = document.querySelector(
|
var title = document.querySelector(
|
||||||
"div#menu_tab_frame_view > div#menu_tab_left span"
|
".breadcrumbs-title"
|
||||||
);
|
);
|
||||||
if (title !== null) {
|
if (title !== null) {
|
||||||
title.textContent = newProps.name;
|
title.textContent = newProps.name;
|
||||||
@ -621,7 +621,12 @@ ui_require_css_file('form');
|
|||||||
if (fullscreenTitle !== null) {
|
if (fullscreenTitle !== null) {
|
||||||
fullscreenTitle.textContent = newProps.name;
|
fullscreenTitle.textContent = newProps.name;
|
||||||
}
|
}
|
||||||
// TODO: Change the metaconsole title.
|
|
||||||
|
// Fullscreen Meta view title.
|
||||||
|
var fullscreenTitleMeta = document.querySelector("div.vc-title-meta");
|
||||||
|
if (fullscreenTitleMeta !== null) {
|
||||||
|
fullscreenTitleMeta.textContent = newProps.name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change the links.
|
// Change the links.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user