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:
@@ -72,7 +72,7 @@ export default class AlertCard extends PureComponent<AlertCardProps, AlertCardSt
|
|||||||
let problemColor: string;
|
let problemColor: string;
|
||||||
if (problem.value === '0') {
|
if (problem.value === '0') {
|
||||||
problemColor = panelOptions.okEventColor;
|
problemColor = panelOptions.okEventColor;
|
||||||
} else if (panelOptions.markAckEvents && problem.acknowledges && problem.acknowledges.length) {
|
} else if (panelOptions.markAckEvents && problem.lastEvent.acknowledged === "1") {
|
||||||
problemColor = panelOptions.ackEventColor;
|
problemColor = panelOptions.ackEventColor;
|
||||||
} else {
|
} else {
|
||||||
problemColor = severityDesc.color;
|
problemColor = severityDesc.color;
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ function SeverityCell(props: RTCell<ZBXTrigger>, problemSeverityDesc: TriggerSev
|
|||||||
color = severityDesc.color;
|
color = severityDesc.color;
|
||||||
|
|
||||||
// Mark acknowledged triggers with different color
|
// Mark acknowledged triggers with different color
|
||||||
if (markAckEvents && problem.acknowledges && problem.acknowledges.length) {
|
if (markAckEvents && problem.lastEvent.acknowledged === "1") {
|
||||||
color = ackEventColor;
|
color = ackEventColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user