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
22805ce5
Commit
22805ce5
authored
Sep 06, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(alert_tab): fix broken alert history
parent
55b560a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
public/app/features/alerting/alert_tab_ctrl.ts
+7
-0
public/app/features/alerting/partials/alert_tab.html
+3
-3
No files found.
public/app/features/alerting/alert_tab_ctrl.ts
View file @
22805ce5
...
@@ -106,6 +106,13 @@ export class AlertTabCtrl {
...
@@ -106,6 +106,13 @@ export class AlertTabCtrl {
}));
}));
}
}
changeTabIndex
(
newTabIndex
)
{
this
.
subTabIndex
=
newTabIndex
;
if
(
this
.
subTabIndex
===
2
)
{
this
.
getAlertHistory
();
}
}
notificationAdded
()
{
notificationAdded
()
{
var
model
=
_
.
findWhere
(
this
.
notifications
,
{
name
:
this
.
addNotificationSegment
.
value
});
var
model
=
_
.
findWhere
(
this
.
notifications
,
{
name
:
this
.
addNotificationSegment
.
value
});
...
...
public/app/features/alerting/partials/alert_tab.html
View file @
22805ce5
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
<aside
class=
"edit-sidemenu-aside"
>
<aside
class=
"edit-sidemenu-aside"
>
<ul
class=
"edit-sidemenu"
>
<ul
class=
"edit-sidemenu"
>
<li
ng-class=
"{active: ctrl.subTabIndex === 0}"
>
<li
ng-class=
"{active: ctrl.subTabIndex === 0}"
>
<a
ng-click=
"ctrl.
subTabIndex = 0
"
>
Alert Config
</a>
<a
ng-click=
"ctrl.
changeTabIndex(0)
"
>
Alert Config
</a>
</li>
</li>
<li
ng-class=
"{active: ctrl.subTabIndex === 1}"
>
<li
ng-class=
"{active: ctrl.subTabIndex === 1}"
>
<a
ng-click=
"ctrl.
subTabIndex = 1
"
>
<a
ng-click=
"ctrl.
changeTabIndex(1)
"
>
Notifications
<span
class=
"muted"
>
({{ctrl.alert.notifications.length}})
</span>
Notifications
<span
class=
"muted"
>
({{ctrl.alert.notifications.length}})
</span>
</a>
</a>
</li>
</li>
<li
ng-class=
"{active: ctrl.subTabIndex === 2}"
>
<li
ng-class=
"{active: ctrl.subTabIndex === 2}"
>
<a
ng-click=
"ctrl.
subTabIndex = 2
"
>
Alert History
</a>
<a
ng-click=
"ctrl.
changeTabIndex(2)
"
>
Alert History
</a>
</li>
</li>
<li>
<li>
<a
ng-click=
"ctrl.delete()"
>
Delete
</a>
<a
ng-click=
"ctrl.delete()"
>
Delete
</a>
...
...
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