File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
public/app/features/alerting/partials Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -155,15 +155,18 @@ func UpdateAlertNotification(cmd *m.UpdateAlertNotificationCommand) error {
155
155
return err
156
156
}
157
157
158
- alertNotification := & m.AlertNotification {}
159
- alertNotification .Id = cmd .Id
160
- alertNotification .OrgId = cmd .OrgID
161
- alertNotification .Name = cmd .Name
162
- alertNotification .Type = cmd .Type
163
- alertNotification .Settings = cmd .Settings
164
- alertNotification .Updated = time .Now ()
165
- alertNotification .Created = current .Created
166
- alertNotification .AlwaysExecute = cmd .AlwaysExecute
158
+ alertNotification := & m.AlertNotification {
159
+ Id : cmd .Id ,
160
+ OrgId : cmd .OrgID ,
161
+ Name : cmd .Name ,
162
+ Type : cmd .Type ,
163
+ Settings : cmd .Settings ,
164
+ Updated : time .Now (),
165
+ Created : current .Created ,
166
+ AlwaysExecute : cmd .AlwaysExecute ,
167
+ }
168
+
169
+ sess .UseBool ("always_execute" )
167
170
168
171
var affected int64
169
172
affected , err = sess .Id (alertNotification .Id ).Update (alertNotification )
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ <h1>Alert notification</h1>
21
21
</ select >
22
22
</ div >
23
23
</ div >
24
+ < div class ="gf-form ">
25
+ < gf-form-switch class ="gf-form " label-class ="width-8 " label ="Always execute " checked ="ctrl.notification.alwaysExecute " on-change =""> </ gf-form-switch >
26
+ </ div >
24
27
</ div >
25
28
< div class ="gf-form-group section " ng-show ="ctrl.notification.type === 'webhook' ">
26
29
< div class ="gf-form ">
You can’t perform that action at this time.
0 commit comments