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
4a937661
Commit
4a937661
authored
Mar 16, 2018
by
Chris Ross
Committed by
Daniel Lee
Apr 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add case-insensitive sort for variables.
parent
a6c76355
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
public/app/features/templating/editor_ctrl.ts
+2
-0
public/app/features/templating/query_variable.ts
+2
-0
No files found.
public/app/features/templating/editor_ctrl.ts
View file @
4a937661
...
@@ -23,6 +23,8 @@ export class VariableEditorCtrl {
...
@@ -23,6 +23,8 @@ export class VariableEditorCtrl {
{
value
:
2
,
text
:
'Alphabetical (desc)'
},
{
value
:
2
,
text
:
'Alphabetical (desc)'
},
{
value
:
3
,
text
:
'Numerical (asc)'
},
{
value
:
3
,
text
:
'Numerical (asc)'
},
{
value
:
4
,
text
:
'Numerical (desc)'
},
{
value
:
4
,
text
:
'Numerical (desc)'
},
{
value
:
5
,
text
:
'Alphabetical (case-insensitive, asc)'
},
{
value
:
6
,
text
:
'Alphabetical (case-insensitive, desc)'
},
];
];
$scope
.
hideOptions
=
[{
value
:
0
,
text
:
''
},
{
value
:
1
,
text
:
'Label'
},
{
value
:
2
,
text
:
'Variable'
}];
$scope
.
hideOptions
=
[{
value
:
0
,
text
:
''
},
{
value
:
1
,
text
:
'Label'
},
{
value
:
2
,
text
:
'Variable'
}];
...
...
public/app/features/templating/query_variable.ts
View file @
4a937661
...
@@ -197,6 +197,8 @@ export class QueryVariable implements Variable {
...
@@ -197,6 +197,8 @@ export class QueryVariable implements Variable {
return
parseInt
(
matches
[
1
],
10
);
return
parseInt
(
matches
[
1
],
10
);
}
}
});
});
}
else
if
(
sortType
===
3
)
{
options
=
_
.
sortBy
(
options
,
opt
=>
{
return
_
.
toLower
(
opt
.
text
);
});
}
}
if
(
reverseSort
)
{
if
(
reverseSort
)
{
...
...
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