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
6263ec1d
Commit
6263ec1d
authored
Feb 13, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some playlist issues, error when adding duplicates
parent
1d86d4b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/app/features/dashboard/playlistCtrl.js
+9
-0
src/app/partials/playlist.html
+1
-6
No files found.
src/app/features/dashboard/playlistCtrl.js
View file @
6263ec1d
...
...
@@ -27,15 +27,24 @@ function (angular, _, config) {
$scope
.
db
.
searchDashboards
(
query
).
then
(
function
(
results
)
{
$scope
.
searchHits
=
results
.
dashboards
;
$scope
.
filterHits
();
});
};
$scope
.
filterHits
=
function
()
{
$scope
.
filteredHits
=
_
.
reject
(
$scope
.
searchHits
,
function
(
dash
)
{
return
_
.
findWhere
(
$scope
.
playlist
,
{
slug
:
dash
.
slug
});
});
};
$scope
.
addDashboard
=
function
(
dashboard
)
{
$scope
.
playlist
.
push
(
dashboard
);
$scope
.
filterHits
();
};
$scope
.
removeDashboard
=
function
(
dashboard
)
{
$scope
.
playlist
=
_
.
without
(
$scope
.
playlist
,
dashboard
);
$scope
.
filterHits
();
};
$scope
.
start
=
function
()
{
...
...
src/app/partials/playlist.html
View file @
6263ec1d
...
...
@@ -36,7 +36,7 @@
<div
class=
"row"
>
<div
class=
"span6"
>
<table
class=
"grafana-options-table"
>
<tr
ng-repeat=
"dashboard in
search
Hits"
>
<tr
ng-repeat=
"dashboard in
filtered
Hits"
>
<td
style=
"white-space: nowrap;"
>
{{dashboard.title}}
</td>
...
...
@@ -65,11 +65,6 @@
</button>
</td>
</tr>
<tr
ng-hide=
"searchHits.length"
>
<td
colspan=
"3"
>
<i
class=
"fa fa-warning"
></i>
No dashboards found
</td>
</tr>
</table>
</div>
</div>
...
...
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