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