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
aff4bf8f
Commit
aff4bf8f
authored
Mar 09, 2016
by
Mitsuhiro Tanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor refactoring
parent
ba1e1532
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
public/app/features/dashboard/dashboardSrv.js
+2
-3
public/app/features/templating/templateValuesSrv.js
+7
-7
No files found.
public/app/features/dashboard/dashboardSrv.js
View file @
aff4bf8f
...
...
@@ -403,11 +403,10 @@ function (angular, $, _, moment) {
if
(
oldVersion
<
11
)
{
// update template variables
for
(
i
=
0
;
i
<
this
.
templating
.
list
.
length
;
i
++
)
{
var
templateVariable
=
this
.
templating
.
list
[
i
];
_
.
each
(
this
.
templating
.
list
,
function
(
templateVariable
)
{
if
(
templateVariable
.
refresh
)
{
templateVariable
.
refresh
=
'On Dashboard Load'
;
}
if
(
!
templateVariable
.
refresh
)
{
templateVariable
.
refresh
=
'Never'
;
}
}
}
);
}
if
(
panelUpgrades
.
length
===
0
)
{
...
...
public/app/features/templating/templateValuesSrv.js
View file @
aff4bf8f
...
...
@@ -21,13 +21,13 @@ function (angular, _, kbn) {
},
$rootScope
);
$rootScope
.
onAppEvent
(
'refresh'
,
function
()
{
var
promises
=
[];
for
(
var
i
=
0
;
i
<
self
.
variables
.
length
;
i
++
)
{
var
variable
=
self
.
variables
[
i
]
;
if
(
variable
.
refresh
===
'On Time Change and Dashboard Load'
)
{
promises
.
push
(
self
.
updateOptions
(
variable
));
}
}
var
promises
=
_
.
chain
(
self
.
variables
)
.
filter
(
function
(
variable
)
{
return
variable
.
refresh
===
'On Time Change and Dashboard Load'
;
})
.
map
(
function
(
variable
)
{
return
self
.
updateOptions
(
variable
);
}
).
value
();
return
$q
.
all
(
promises
);
},
$rootScope
);
...
...
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