fix not acknowledged problem color with a message (#858)

* fix not acknowledged problem color with a message

* fix not acknowledged problem color with a message, closes #857
This commit is contained in:
memfiz
2020-01-13 09:58:01 +02:00
committed by Alexander Zobnin
parent fe0c5cf1fd
commit 4f24b2bf23
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ export default class AlertCard extends PureComponent<AlertCardProps, AlertCardSt
let problemColor: string;
if (problem.value === '0') {
problemColor = panelOptions.okEventColor;
} else if (panelOptions.markAckEvents && problem.acknowledges && problem.acknowledges.length) {
} else if (panelOptions.markAckEvents && problem.lastEvent.acknowledged === "1") {
problemColor = panelOptions.ackEventColor;
} else {
problemColor = severityDesc.color;