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
e5743144
Commit
e5743144
authored
Feb 11, 2014
by
Torkel Odegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #82, dashboard search/load now sorts in alfabetical order
parent
45ab6d7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
src/app/controllers/dashLoader.js
+0
-10
src/app/controllers/search.js
+3
-1
No files found.
src/app/controllers/dashLoader.js
View file @
e5743144
...
...
@@ -103,16 +103,6 @@ function (angular, _, moment) {
);
};
$scope
.
elasticsearch_dblist
=
function
(
query
)
{
dashboard
.
elasticsearch_list
(
query
,
$scope
.
loader
.
load_elasticsearch_size
).
then
(
function
(
result
)
{
if
(
!
_
.
isUndefined
(
result
.
hits
))
{
$scope
.
hits
=
result
.
hits
.
total
;
$scope
.
elasticsearch
.
dashboards
=
result
.
hits
.
hits
;
}
});
};
$scope
.
save_gist
=
function
()
{
dashboard
.
save_gist
(
$scope
.
gist
.
title
).
then
(
function
(
link
)
{
...
...
src/app/controllers/search.js
View file @
e5743144
...
...
@@ -47,7 +47,9 @@ function (angular, _, config, $) {
return
;
}
$scope
.
search_results
=
{
dashboards
:
results
.
hits
.
hits
};
var
hits
=
_
.
sortBy
(
results
.
hits
.
hits
,
'_id'
);
$scope
.
search_results
=
{
dashboards
:
hits
};
});
};
...
...
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