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
fa813024
Commit
fa813024
authored
Nov 06, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SingleStatPanel: various fixes
parent
37176fa4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
src/app/panels/stats/module.js
+3
-1
src/app/panels/stats/statsDirective.js
+3
-9
src/app/services/dashboard/dashboardSrv.js
+5
-0
src/app/services/dashboard/dashboardViewStateSrv.js
+2
-0
No files found.
src/app/panels/stats/module.js
View file @
fa813024
...
...
@@ -169,7 +169,9 @@ function (angular, app, _, TimeSeries, kbn) {
var
data
=
{};
if
(
!
$scope
.
series
||
$scope
.
series
.
length
===
0
)
{
data
.
series
=
{
mainValue
:
null
,
datapoints
:
[]
};
data
.
flotpairs
=
[];
data
.
mainValue
=
Number
.
NaN
;
data
.
mainValueFormated
=
'NaN'
;
}
else
{
var
series
=
$scope
.
series
[
0
];
...
...
src/app/panels/stats/statsDirective.js
View file @
fa813024
...
...
@@ -21,14 +21,6 @@ function (angular, app, _, kbn, $) {
var
$panelContainer
=
elem
.
parents
(
'.panel-container'
);
scope
.
$on
(
'render'
,
function
()
{
data
=
scope
.
data
;
panel
=
scope
.
panel
;
if
(
!
data
||
data
.
flotpairs
.
length
===
0
)
{
elem
.
html
(
'no data'
);
return
;
}
render
();
});
...
...
@@ -148,9 +140,11 @@ function (angular, app, _, kbn, $) {
}
function
render
()
{
data
=
scope
.
data
;
panel
=
scope
.
panel
;
setElementHeight
();
var
panel
=
scope
.
panel
;
var
body
=
getBigValueHtml
();
if
(
panel
.
colorBackground
&&
data
.
mainValue
)
{
...
...
src/app/services/dashboard/dashboardSrv.js
View file @
fa813024
...
...
@@ -99,10 +99,15 @@ function (angular, $, kbn, _, moment) {
result
.
panel
=
panel
;
result
.
row
=
row
;
result
.
index
=
index
;
return
;
}
});
});
if
(
!
result
.
panel
)
{
return
null
;
}
return
result
;
};
...
...
src/app/services/dashboard/dashboardViewStateSrv.js
View file @
fa813024
...
...
@@ -39,7 +39,9 @@ function (angular, _, $) {
if
(
!
this
.
state
.
panelId
)
{
return
;
}
var
panelInfo
=
this
.
$scope
.
dashboard
.
getPanelInfoById
(
this
.
state
.
panelId
);
if
(
panelInfo
)
{
panelInfo
.
row
.
collapse
=
false
;
}
};
DashboardViewState
.
prototype
.
needsSync
=
function
(
urlState
)
{
...
...
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