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
63558965
Commit
63558965
authored
Apr 14, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(snapshots): Fixed issue with empty snapshots, fixes #4706
parent
6216ce45
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
12 deletions
+5
-12
CHANGELOG.md
+1
-0
public/app/features/panel/metrics_panel_ctrl.ts
+1
-1
public/app/plugins/panel/graph/module.ts
+1
-1
public/app/plugins/panel/singlestat/module.ts
+1
-5
public/app/plugins/panel/table/module.ts
+1
-5
No files found.
CHANGELOG.md
View file @
63558965
...
...
@@ -2,6 +2,7 @@
### Bug fixes
*
**Graph**
: Fixed issue with light theme text color issue in tooltip, fixes
[
#4702
](
https://github.com/grafana/grafana/issues/4702
)
*
**Snapshot**
: Fixed issue with empty snapshots, fixes
[
#4706
](
https://github.com/grafana/grafana/issues/4706
)
# 3.0.0-beta4 (2016-04-13)
...
...
public/app/features/panel/metrics_panel_ctrl.ts
View file @
63558965
...
...
@@ -65,7 +65,7 @@ class MetricsPanelCtrl extends PanelCtrl {
var
data
=
this
.
panel
.
snapshotData
;
// backward compatability
if
(
!
_
.
isArray
(
data
))
{
data
=
data
;
data
=
data
.
data
;
}
this
.
events
.
emit
(
'data-snapshot-load'
,
data
);
...
...
public/app/plugins/panel/graph/module.ts
View file @
63558965
...
...
@@ -161,7 +161,7 @@ class GraphCtrl extends MetricsPanelCtrl {
onDataSnapshotLoad
(
snapshotData
)
{
this
.
annotationsPromise
=
this
.
annotationsSrv
.
getAnnotations
(
this
.
dashboard
);
this
.
onDataReceived
(
snapshotData
.
data
);
this
.
onDataReceived
(
snapshotData
);
}
onDataError
(
err
)
{
...
...
public/app/plugins/panel/singlestat/module.ts
View file @
63558965
...
...
@@ -56,7 +56,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
this
.
events
.
on
(
'data-received'
,
this
.
onDataReceived
.
bind
(
this
));
this
.
events
.
on
(
'data-error'
,
this
.
onDataError
.
bind
(
this
));
this
.
events
.
on
(
'data-snapshot-load'
,
this
.
onData
SnapshotLoa
d
.
bind
(
this
));
this
.
events
.
on
(
'data-snapshot-load'
,
this
.
onData
Receive
d
.
bind
(
this
));
this
.
events
.
on
(
'init-edit-mode'
,
this
.
onInitEditMode
.
bind
(
this
));
}
...
...
@@ -71,10 +71,6 @@ class SingleStatCtrl extends MetricsPanelCtrl {
this
.
render
();
}
onDataSnapshotLoad
(
snapshotData
)
{
this
.
onDataReceived
(
snapshotData
.
data
);
}
onDataError
(
err
)
{
this
.
onDataReceived
({
data
:
[]});
}
...
...
public/app/plugins/panel/table/module.ts
View file @
63558965
...
...
@@ -60,7 +60,7 @@ class TablePanelCtrl extends MetricsPanelCtrl {
this
.
events
.
on
(
'data-received'
,
this
.
onDataReceived
.
bind
(
this
));
this
.
events
.
on
(
'data-error'
,
this
.
onDataError
.
bind
(
this
));
this
.
events
.
on
(
'data-snapshot-load'
,
this
.
onData
SnapshotLoa
d
.
bind
(
this
));
this
.
events
.
on
(
'data-snapshot-load'
,
this
.
onData
Receive
d
.
bind
(
this
));
this
.
events
.
on
(
'init-edit-mode'
,
this
.
onInitEditMode
.
bind
(
this
));
this
.
events
.
on
(
'init-panel-actions'
,
this
.
onInitPanelActions
.
bind
(
this
));
}
...
...
@@ -86,10 +86,6 @@ class TablePanelCtrl extends MetricsPanelCtrl {
return
super
.
issueQueries
(
datasource
);
}
onDataSnapshotLoad
(
data
)
{
this
.
onDataReceived
(
data
.
data
);
}
onDataError
(
err
)
{
this
.
dataRaw
=
[];
this
.
render
();
...
...
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