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
444240df
Commit
444240df
authored
Dec 21, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech: mobx tests
parent
354913a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
public/app/core/components/search/SearchResult.tsx
+2
-0
public/app/core/components/search/search.html
+5
-6
public/app/stores/SearchStore.ts
+11
-0
No files found.
public/app/core/components/search/SearchResult.tsx
View file @
444240df
...
...
@@ -15,6 +15,8 @@ export class SearchResult extends React.Component<SearchResultProps, any> {
this
.
state
=
{
search
:
store
.
search
};
store
.
search
.
query
();
}
render
()
{
...
...
public/app/core/components/search/search.html
View file @
444240df
...
...
@@ -22,12 +22,11 @@
<div
class=
"search-dropdown__col_1"
>
<div
class=
"search-results-container"
grafana-scrollbar
>
<h6
ng-show=
"!ctrl.isLoading && ctrl.results.length === 0"
>
No dashboards matching your query were found.
</h6>
<search-result
/>
<!-- <dashboard-search-results -->
<!-- results="ctrl.results" -->
<!-- on-tag-selected="ctrl.filterByTag($tag)" -->
<!-- on-folder-expanding="ctrl.folderExpanding()" -->
<!-- on-folder-expanded="ctrl.folderExpanded($folder)" /> -->
<dashboard-search-results
results=
"ctrl.results"
on-tag-selected=
"ctrl.filterByTag($tag)"
on-folder-expanding=
"ctrl.folderExpanding()"
on-folder-expanded=
"ctrl.folderExpanded($folder)"
/>
</div>
</div>
...
...
public/app/stores/SearchStore.ts
View file @
444240df
...
...
@@ -20,6 +20,17 @@ export const SearchResultSection = types
.
actions
(
self
=>
({
toggle
()
{
self
.
expanded
=
!
self
.
expanded
;
for
(
let
i
=
0
;
i
<
100
;
i
++
)
{
self
.
items
.
push
(
ResultItem
.
create
({
id
:
i
,
title
:
"Dashboard "
+
self
.
items
.
length
,
icon
:
"gicon gicon-dashboard"
,
url
:
"asd"
})
);
}
}
}));
...
...
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