mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Fixed bad background color for default notifications in alert tab (#22660)
* fix: remove harcoded bg color * added default info Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
parent
4e25823705
commit
6979b44592
@ -237,7 +237,6 @@ export class AlertTabCtrl {
|
||||
for (const notification of this.notifications) {
|
||||
if (notification.isDefault) {
|
||||
notification.iconClass = this.getNotificationIcon(notification.type);
|
||||
notification.bgColor = '#00678b';
|
||||
this.alertNotifications.push(notification);
|
||||
}
|
||||
}
|
||||
|
@ -139,8 +139,9 @@
|
||||
<span class="gf-form-label width-8">Send to</span>
|
||||
</div>
|
||||
<div class="gf-form" ng-repeat="nc in ctrl.alertNotifications">
|
||||
<span class="gf-form-label" ng-style="{'background-color': nc.bgColor }">
|
||||
<i class="{{nc.iconClass}}"></i> {{nc.name}}
|
||||
<span class="gf-form-label">
|
||||
<i class="{{nc.iconClass}}"></i>
|
||||
{{nc.name}} <span ng-if="nc.isDefault">(default)</span>
|
||||
<i class="fa fa-remove pointer muted" ng-click="ctrl.removeNotification(nc)" ng-if="nc.isDefault === false"></i>
|
||||
</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user