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
e832519d
Commit
e832519d
authored
Dec 03, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Potential fix for #621
parent
f1943362
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/app/services/dashboard.js
+5
-3
No files found.
src/app/services/dashboard.js
View file @
e832519d
...
@@ -184,6 +184,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -184,6 +184,8 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// Set the current dashboard
// Set the current dashboard
self
.
current
=
_
.
clone
(
dashboard
);
self
.
current
=
_
.
clone
(
dashboard
);
// Delay this until we're sure that querySrv and filterSrv are ready
$timeout
(
function
()
{
// Ok, now that we've setup the current dashboard, we can inject our services
// Ok, now that we've setup the current dashboard, we can inject our services
querySrv
=
$injector
.
get
(
'querySrv'
);
querySrv
=
$injector
.
get
(
'querySrv'
);
filterSrv
=
$injector
.
get
(
'filterSrv'
);
filterSrv
=
$injector
.
get
(
'filterSrv'
);
...
@@ -191,10 +193,10 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
...
@@ -191,10 +193,10 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// Make sure these re-init
// Make sure these re-init
querySrv
.
init
();
querySrv
.
init
();
filterSrv
.
init
();
filterSrv
.
init
();
},
0
).
then
(
function
()
{
// If there's an interval set, the indices have not been calculated yet,
// Call refresh to calculate the indices and notify the panels that we're ready to roll
// so there is no data. Call refresh to calculate the indices and notify the panels.
self
.
refresh
();
self
.
refresh
();
});
if
(
dashboard
.
refresh
)
{
if
(
dashboard
.
refresh
)
{
self
.
set_interval
(
dashboard
.
refresh
);
self
.
set_interval
(
dashboard
.
refresh
);
...
...
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