Commit 6979b445 by Miguel Carvajal Committed by GitHub

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>
parent 4e258237
...@@ -237,7 +237,6 @@ export class AlertTabCtrl { ...@@ -237,7 +237,6 @@ export class AlertTabCtrl {
for (const notification of this.notifications) { for (const notification of this.notifications) {
if (notification.isDefault) { if (notification.isDefault) {
notification.iconClass = this.getNotificationIcon(notification.type); notification.iconClass = this.getNotificationIcon(notification.type);
notification.bgColor = '#00678b';
this.alertNotifications.push(notification); this.alertNotifications.push(notification);
} }
} }
......
...@@ -139,8 +139,9 @@ ...@@ -139,8 +139,9 @@
<span class="gf-form-label width-8">Send to</span> <span class="gf-form-label width-8">Send to</span>
</div> </div>
<div class="gf-form" ng-repeat="nc in ctrl.alertNotifications"> <div class="gf-form" ng-repeat="nc in ctrl.alertNotifications">
<span class="gf-form-label" ng-style="{'background-color': nc.bgColor }"> <span class="gf-form-label">
<i class="{{nc.iconClass}}"></i>&nbsp;{{nc.name}}&nbsp; <i class="{{nc.iconClass}}"></i>
&nbsp;{{nc.name}}&nbsp;<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> <i class="fa fa-remove pointer muted" ng-click="ctrl.removeNotification(nc)" ng-if="nc.isDefault === false"></i>
</span> </span>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment