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
2752dbd1
Commit
2752dbd1
authored
Sep 22, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(templating): minor fixes to recent refactorings
parent
6257ae09
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
public/app/features/templating/templateValuesSrv.js
+0
-0
public/app/features/templating/variable_srv.ts
+4
-3
No files found.
public/app/features/templating/templateValuesSrv.js
deleted
100644 → 0
View file @
6257ae09
This diff is collapsed.
Click to expand it.
public/app/features/templating/variable_srv.ts
View file @
2752dbd1
...
...
@@ -36,7 +36,9 @@ export class VariableSrv {
var
queryParams
=
this
.
$location
.
search
();
return
this
.
$q
.
all
(
this
.
variables
.
map
(
variable
=>
{
return
this
.
processVariable
(
variable
,
queryParams
);
}));
})).
then
(()
=>
{
this
.
templateSrv
.
updateTemplateData
();
});
}
onDashboardRefresh
()
{
...
...
@@ -155,8 +157,7 @@ export class VariableSrv {
validateVariableSelectionState
(
variable
)
{
if
(
!
variable
.
current
)
{
if
(
!
variable
.
options
.
length
)
{
return
this
.
$q
.
when
();
}
return
variable
.
setValue
(
variable
.
options
[
0
]);
variable
.
current
=
{};
}
if
(
_
.
isArray
(
variable
.
current
.
value
))
{
...
...
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