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
0bde2ae6
Commit
0bde2ae6
authored
Sep 19, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(alertlist): remove timerange checkbox option
parent
0984edd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
public/app/plugins/panel/alertlist/editor.html
+2
-9
public/app/plugins/panel/alertlist/module.ts
+3
-6
No files found.
public/app/plugins/panel/alertlist/editor.html
View file @
0bde2ae6
...
...
@@ -22,15 +22,8 @@
</div>
<div
class=
"section gf-form-group"
ng-if=
"ctrl.panel.show == 'changes'"
>
<h5
class=
"section-heading"
>
Time options
</h5>
<gf-form-switch
class=
"gf-form"
label=
"Within time range"
label-class=
"width-11"
tooltip=
"Show alert changes within the dashboard time range"
checked=
"ctrl.panel.useTimeRange"
on-change=
"ctrl.onRender()"
></gf-form-switch>
</div>
<!-- <h5 class="section-heading">Current state</h5> -->
</div>
<div
class=
"section gf-form-group"
ng-if=
"ctrl.panel.show == 'current'"
>
<!-- <h5 class="section-heading">Current state</h5> -->
...
...
public/app/plugins/panel/alertlist/module.ts
View file @
0bde2ae6
...
...
@@ -24,8 +24,7 @@ class AlertListPanel extends PanelCtrl {
panelDefaults
=
{
show
:
'current'
,
limit
:
10
,
stateFilter
:
[],
useTimeRange
:
false
stateFilter
:
[]
};
/** @ngInject */
...
...
@@ -72,10 +71,8 @@ class AlertListPanel extends PanelCtrl {
newState
:
this
.
panel
.
stateFilter
};
if
(
this
.
panel
.
useTimeRange
)
{
params
.
from
=
dateMath
.
parse
(
this
.
dashboard
.
time
.
from
).
unix
()
*
1000
;
params
.
to
=
dateMath
.
parse
(
this
.
dashboard
.
time
.
to
).
unix
()
*
1000
;
}
params
.
from
=
dateMath
.
parse
(
this
.
dashboard
.
time
.
from
).
unix
()
*
1000
;
params
.
to
=
dateMath
.
parse
(
this
.
dashboard
.
time
.
to
).
unix
()
*
1000
;
this
.
backendSrv
.
get
(
`/api/annotations`
,
params
)
.
then
(
res
=>
{
...
...
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