From af4226aa436b95f5ca78a29e9eca4d1d03f1c2e9 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Kempapura Srinivasa Date: Tue, 28 Sep 2021 13:58:28 +0200 Subject: [PATCH] Address Node which is UP or OK with downtime. --- library/Businessprocess/BpNode.php | 2 +- public/css/state-badge.less | 2 +- public/css/state-badges.less | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index ba42cb7..2afde69 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -74,7 +74,7 @@ class BpNode extends Node $this->counters['MISSING']++; } else { $state = $child->getStateName($this->getChildState($child)); - if ($child->isHandled()) { + if ($child->isHandled() && ($state !== 'UP' && $state !== 'OK')) { $state = $state . '-HANDLED'; } diff --git a/public/css/state-badge.less b/public/css/state-badge.less index 9768cb8..f5e5577 100644 --- a/public/css/state-badge.less +++ b/public/css/state-badge.less @@ -6,7 +6,7 @@ min-width: 2em; padding: .25em; text-align: center; - border: 1px solid black; + border: 1px solid @body-bg-color; &.state-critical { background-color: @color-critical diff --git a/public/css/state-badges.less b/public/css/state-badges.less index 570af1f..89bce8f 100644 --- a/public/css/state-badges.less +++ b/public/css/state-badges.less @@ -13,6 +13,7 @@ li > ul > li:first-child:not(:last-child) .state-badge { border-bottom-right-radius: 0; border-top-right-radius: 0; + border-right: 0; } li > ul > li:last-child:not(:first-child) .state-badge { @@ -21,7 +22,7 @@ } > li:not(:last-child) { - margin-right: .25em; + margin-right: 1px; } } }