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
8ed9e2e5
Commit
8ed9e2e5
authored
Jan 26, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3860 from utkarshcmu/fix-tags
Fixed broken tags search
parents
13d993a8
a352af5b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
public/app/core/components/search/search.html
+2
-2
public/app/core/components/search/search.ts
+4
-1
No files found.
public/app/core/components/search/search.html
View file @
8ed9e2e5
...
...
@@ -16,7 +16,7 @@
<span
ng-if=
"ctrl.query.tag.length"
>
|
<span
ng-repeat=
"tagName in ctrl.query.tag"
>
<a
ng-click=
"ctrl.removeTag(tagName, $event)"
tag-color-from-name=
"
ctrl.
tagName"
class=
"label label-tag"
>
<a
ng-click=
"ctrl.removeTag(tagName, $event)"
tag-color-from-name=
"tagName"
class=
"label label-tag"
>
<i
class=
"fa fa-remove"
></i>
{{tagName}}
</a>
...
...
@@ -28,7 +28,7 @@
<div
class=
"search-results-container"
ng-if=
"ctrl.tagsMode"
>
<div
class=
"row"
>
<div
class=
"span6 offset1"
>
<div
ng-repeat=
"tag in results"
class=
"pointer"
style=
"width: 180px; float: left;"
<div
ng-repeat=
"tag in
ctrl.
results"
class=
"pointer"
style=
"width: 180px; float: left;"
ng-class=
"{'selected': $index === selectedIndex }"
ng-click=
"ctrl.filterByTag(tag.term, $event)"
>
<a
class=
"search-result-tag label label-tag"
tag-color-from-name=
"tag.term"
>
...
...
public/app/core/components/search/search.ts
View file @
8ed9e2e5
...
...
@@ -108,9 +108,12 @@ export class SearchCtrl {
getTags
()
{
return
this
.
backendSrv
.
get
(
'/api/dashboards/tags'
).
then
((
results
)
=>
{
this
.
tagsMode
=
tru
e
;
this
.
tagsMode
=
!
this
.
tagsMod
e
;
this
.
results
=
results
;
this
.
giveSearchFocus
=
this
.
giveSearchFocus
+
1
;
if
(
!
this
.
tagsMode
)
{
this
.
search
();
}
});
};
...
...
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