Skip to content

Commit

Permalink
IncidentHistoryListItem: Use colored icon to visualise notification-s…
Browse files Browse the repository at this point in the history
…tate
  • Loading branch information
sukhwinder33445 committed Feb 13, 2025
1 parent ede7734 commit ef82431
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ protected function assembleVisual(BaseHtmlElement $visual): void
$content = new Icon($incidentIcon, ['class' => 'severity-' . $this->item->new_severity]);
} else {
$content = new IconBall($incidentIcon);

if ($this->item->type === 'notified') {
$content->addAttributes(['class' => ['notification', $this->item->notification_state]]);
}
}

$visual->addHtml($content);
Expand Down
24 changes: 22 additions & 2 deletions public/css/detail/incident-detail.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,27 @@
}
}

.list-item.notification-suppressed {
opacity: .75;
.list-item {
&.notification-suppressed {
opacity: .75;
}

.visual .notification {
&.failed {
color: @state-critical;
}

&.pending {

}

&.suppressed {
color: @state-warning;
}

&.sent {
color: @state-ok;
}
}
}
}

0 comments on commit ef82431

Please sign in to comment.