Skip to content

Commit

Permalink
fix not acknowledged problem color with a message, closes grafana#857
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnis Civciss committed Jan 13, 2020
1 parent 16c5d95 commit 84df499
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/panel-triggers/components/AlertList/AlertCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.lastEvent.acknowledged == "1") {
} else if (panelOptions.markAckEvents && problem.lastEvent.acknowledged === "1") {
problemColor = panelOptions.ackEventColor;
} else {
problemColor = severityDesc.color;
Expand Down
2 changes: 1 addition & 1 deletion src/panel-triggers/components/Problems/Problems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function SeverityCell(props: RTCell<ZBXTrigger>, problemSeverityDesc: TriggerSev
color = severityDesc.color;

// Mark acknowledged triggers with different color
if (markAckEvents && problem.lastEvent.acknowledged == "1") {
if (markAckEvents && problem.lastEvent.acknowledged === "1") {
color = ackEventColor;
}

Expand Down

0 comments on commit 84df499

Please sign in to comment.