mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#8696 Fixed warning status
This commit is contained in:
parent
3a5d412588
commit
02fe08903c
pandora_console/include
@ -4139,7 +4139,7 @@ function visual_map_get_layout_status($layout_id, $status_data=[], $depth=0)
|
||||
|
||||
if ($critical_percentage >= $status_data['linked_layout_status_as_service_critical'] && $critical_percentage !== 0) {
|
||||
return VISUAL_MAP_STATUS_CRITICAL_BAD;
|
||||
} else if ($critical_percentage >= $status_data['linked_layout_status_as_service_warning'] && $warning_percentage !== 0) {
|
||||
} else if ($warning_percentage >= $status_data['linked_layout_status_as_service_warning'] && $warning_percentage !== 0) {
|
||||
return VISUAL_MAP_STATUS_WARNING;
|
||||
} else {
|
||||
return VISUAL_MAP_STATUS_NORMAL;
|
||||
|
@ -1469,7 +1469,7 @@ function linkedVisualConsoleTypeChange() {
|
||||
function imageVCChange(baseUrl, vcId, only) {
|
||||
var nameImg = document.getElementById("imageSrc").value;
|
||||
if (nameImg == 0) {
|
||||
$("#li-image-item label").empty();
|
||||
$("#li-image-item").empty();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1503,8 +1503,8 @@ function imageVCChange(baseUrl, vcId, only) {
|
||||
}
|
||||
}
|
||||
|
||||
$("#li-image-item label").empty();
|
||||
$("#li-image-item label").append(data);
|
||||
$("#li-image-item").empty();
|
||||
$("#li-image-item").append(data);
|
||||
return;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user