Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
5d62c84a
Commit
5d62c84a
authored
Jun 20, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(alerting): adds default checkbox to ui
parent
f5297db8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
pkg/services/sqlstore/alert_notification.go
+12
-9
public/app/features/alerting/partials/notification_edit.html
+3
-0
No files found.
pkg/services/sqlstore/alert_notification.go
View file @
5d62c84a
...
@@ -155,15 +155,18 @@ func UpdateAlertNotification(cmd *m.UpdateAlertNotificationCommand) error {
...
@@ -155,15 +155,18 @@ func UpdateAlertNotification(cmd *m.UpdateAlertNotificationCommand) error {
return
err
return
err
}
}
alertNotification
:=
&
m
.
AlertNotification
{}
alertNotification
:=
&
m
.
AlertNotification
{
alertNotification
.
Id
=
cmd
.
Id
Id
:
cmd
.
Id
,
alertNotification
.
OrgId
=
cmd
.
OrgID
OrgId
:
cmd
.
OrgID
,
alertNotification
.
Name
=
cmd
.
Name
Name
:
cmd
.
Name
,
alertNotification
.
Type
=
cmd
.
Type
Type
:
cmd
.
Type
,
alertNotification
.
Settings
=
cmd
.
Settings
Settings
:
cmd
.
Settings
,
alertNotification
.
Updated
=
time
.
Now
()
Updated
:
time
.
Now
(),
alertNotification
.
Created
=
current
.
Created
Created
:
current
.
Created
,
alertNotification
.
AlwaysExecute
=
cmd
.
AlwaysExecute
AlwaysExecute
:
cmd
.
AlwaysExecute
,
}
sess
.
UseBool
(
"always_execute"
)
var
affected
int64
var
affected
int64
affected
,
err
=
sess
.
Id
(
alertNotification
.
Id
)
.
Update
(
alertNotification
)
affected
,
err
=
sess
.
Id
(
alertNotification
.
Id
)
.
Update
(
alertNotification
)
...
...
public/app/features/alerting/partials/notification_edit.html
View file @
5d62c84a
...
@@ -21,6 +21,9 @@
...
@@ -21,6 +21,9 @@
</select>
</select>
</div>
</div>
</div>
</div>
<div
class=
"gf-form"
>
<gf-form-switch
class=
"gf-form"
label-class=
"width-8"
label=
"Always execute"
checked=
"ctrl.notification.alwaysExecute"
on-change=
""
></gf-form-switch>
</div>
</div>
</div>
<div
class=
"gf-form-group section"
ng-show=
"ctrl.notification.type === 'webhook'"
>
<div
class=
"gf-form-group section"
ng-show=
"ctrl.notification.type === 'webhook'"
>
<div
class=
"gf-form"
>
<div
class=
"gf-form"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment