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
f36ade29
Commit
f36ade29
authored
Jan 28, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(playlist): cleanup some code
parent
85ad5f1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
24 deletions
+7
-24
public/app/features/playlist/partials/playlist_search.html
+1
-1
public/app/features/playlist/playlist_search.ts
+5
-16
public/less/playlist.less
+1
-7
No files found.
public/app/features/playlist/partials/playlist_search.html
View file @
f36ade29
<div
class=
"playlist-search-field-wrapper"
>
<span
style=
"position: relative;"
>
<input
type=
"text"
placeholder=
"Find dashboards by name"
give-focus=
"ctrl.giveSearchFocus"
tabindex=
"1"
<input
type=
"text"
placeholder=
"Find dashboards by name"
tabindex=
"1"
ng-keydown=
"ctrl.keyDown($event)"
ng-model=
"ctrl.query.query"
ng-model-options=
"{ debounce: 500 }"
spellcheck=
'false'
ng-change=
"ctrl.searchDashboards()"
/>
</span>
<div
class=
"playlist-search-switches"
>
...
...
public/app/features/playlist/playlist_search.ts
View file @
f36ade29
...
...
@@ -26,12 +26,6 @@ export class PlaylistSearchCtrl {
this
.
tagsMode
=
false
;
var
prom
:
any
=
{};
/*
prom.promise = this.backendSrv.search(this.query).then((results) => {
console.log('playlist_search_ctrl: ', results);
return results;
});
*/
prom
.
promise
=
this
.
backendSrv
.
search
(
this
.
query
).
then
((
result
)
=>
{
return
{
dashboardResult
:
result
,
...
...
@@ -42,6 +36,11 @@ export class PlaylistSearchCtrl {
this
.
searchStarted
(
prom
);
}
showStarred
()
{
this
.
query
.
starred
=
!
this
.
query
.
starred
;
this
.
searchDashboards
();
};
queryHasNoFilters
()
{
return
this
.
query
.
query
===
''
&&
this
.
query
.
starred
===
false
&&
this
.
query
.
tag
.
length
===
0
;
};
...
...
@@ -66,16 +65,6 @@ export class PlaylistSearchCtrl {
});
this
.
searchStarted
(
prom
);
/*
this.searchStarted(prom);
return this.backendSrv.get('/api/dashboards/tags').then((results) => {
this.tagsMode = true;
console.log(results);
});
*/
};
}
...
...
public/less/playlist.less
View file @
f36ade29
.playlist-search-container {
//left: 59px;
//top: 39px;
margin: 15px;
z-index: 1000;
//position: relative;
position: relative;
width: 700px;
box-shadow: 0px 0px 55px 0px black;
//padding: 10px;
background-color: @grafanaPanelBackground;
//border: 1px solid @grafanaTargetFuncBackground;
.label-tag {
margin-left: 6px;
...
...
@@ -21,11 +16,10 @@
.playlist-search-switches {
position: relative;
top: -39px;
right: -268
px;
left: 260
px;
}
.playlist-search-field-wrapper {
//padding-bottom: 10px;
input {
width: 100%;
padding: 8px 8px;
...
...
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