Merge branch 'ent-8596-Mal-funcionamiento-en-el-cálculo-de-estado-por-elementos-críticos-en-Consolas-Visuales' into 'develop'
Ent 8596 mal funcionamiento en el cálculo de estado por elementos críticos en consolas visuales See merge request artica/pandorafms!4745
This commit is contained in:
commit
4c418f5979
|
@ -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;
|
||||
|
|
|
@ -399,7 +399,10 @@ class ModuleIconWidget extends Widget
|
|||
'class' => 'flex-row flex-end w100p',
|
||||
'direct' => 1,
|
||||
'block_content' => [
|
||||
['label' => $image],
|
||||
[
|
||||
'label' => $image,
|
||||
'arguments' => ['type' => 'image-item'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -389,7 +389,10 @@ class ModuleStatusWidget extends Widget
|
|||
'class' => 'flex-row flex-end w100p',
|
||||
'direct' => 1,
|
||||
'block_content' => [
|
||||
['label' => $image],
|
||||
[
|
||||
'label' => $image,
|
||||
'arguments' => ['type' => 'image-item'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -537,7 +537,10 @@ final class Group extends Item
|
|||
'class' => 'flex-row flex-end w100p',
|
||||
'direct' => 1,
|
||||
'block_content' => [
|
||||
['label' => $images],
|
||||
[
|
||||
'label' => $images,
|
||||
'arguments' => ['type' => 'image-item'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -190,7 +190,10 @@ final class Icon extends Item
|
|||
'class' => 'flex-row flex-end w100p',
|
||||
'direct' => 1,
|
||||
'block_content' => [
|
||||
['label' => $images],
|
||||
[
|
||||
'label' => $images,
|
||||
'arguments' => ['type' => 'image-item'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -351,7 +351,10 @@ final class StaticGraph extends Item
|
|||
'class' => 'flex-row flex-end w100p',
|
||||
'direct' => 1,
|
||||
'block_content' => [
|
||||
['label' => $images],
|
||||
[
|
||||
'label' => $images,
|
||||
'arguments' => ['type' => 'image-item'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue