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
f3845389
Commit
f3845389
authored
Jan 26, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(search): fixes broken esc button in search
parent
0b05d398
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
public/app/core/components/search/search.ts
+5
-2
public/app/features/dashboard/directives/dashSearchView.js
+1
-1
No files found.
public/app/core/components/search/search.ts
View file @
f3845389
...
...
@@ -14,6 +14,7 @@ export class SearchCtrl {
currentSearchId
:
number
;
tagsMode
:
boolean
;
showImport
:
boolean
;
dismiss
:
any
;
/** @ngInject */
constructor
(
private
$scope
,
private
$location
,
private
$timeout
,
private
backendSrv
,
private
contextSrv
)
{
...
...
@@ -32,7 +33,7 @@ export class SearchCtrl {
keyDown
(
evt
)
{
if
(
evt
.
keyCode
===
27
)
{
this
.
$scope
.
dismiss
();
this
.
dismiss
();
}
if
(
evt
.
keyCode
===
40
)
{
this
.
moveSelection
(
1
);
...
...
@@ -137,7 +138,9 @@ export function searchDirective() {
controller
:
SearchCtrl
,
bindToController
:
true
,
controllerAs
:
'ctrl'
,
scope
:
{},
scope
:
{
dismiss
:
'&'
},
};
}
...
...
public/app/features/dashboard/directives/dashSearchView.js
View file @
f3845389
...
...
@@ -29,7 +29,7 @@ function (angular, $) {
editorScope
=
null
;
};
var
view
=
$
(
'<search class="search-container"></search>'
);
var
view
=
$
(
'<search class="search-container"
dismiss="dismiss()"
></search>'
);
elem
.
append
(
view
);
$compile
(
elem
.
contents
())(
editorScope
);
...
...
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