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
2a360c45
Commit
2a360c45
authored
Dec 20, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux: minor name change to search sections
parent
06c80340
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
public/app/core/services/search_srv.ts
+2
-2
public/app/core/specs/search_srv.jest.ts
+2
-2
No files found.
public/app/core/services/search_srv.ts
View file @
2a360c45
...
@@ -18,7 +18,7 @@ export class SearchSrv {
...
@@ -18,7 +18,7 @@ export class SearchSrv {
return
this
.
queryForRecentDashboards
().
then
(
result
=>
{
return
this
.
queryForRecentDashboards
().
then
(
result
=>
{
if
(
result
.
length
>
0
)
{
if
(
result
.
length
>
0
)
{
sections
[
"recent"
]
=
{
sections
[
"recent"
]
=
{
title
:
"Recent
Boards
"
,
title
:
"Recent"
,
icon
:
"fa fa-clock-o"
,
icon
:
"fa fa-clock-o"
,
score
:
-
1
,
score
:
-
1
,
removable
:
true
,
removable
:
true
,
...
@@ -76,7 +76,7 @@ export class SearchSrv {
...
@@ -76,7 +76,7 @@ export class SearchSrv {
return
this
.
backendSrv
.
search
({
starred
:
true
,
limit
:
5
}).
then
(
result
=>
{
return
this
.
backendSrv
.
search
({
starred
:
true
,
limit
:
5
}).
then
(
result
=>
{
if
(
result
.
length
>
0
)
{
if
(
result
.
length
>
0
)
{
sections
[
"starred"
]
=
{
sections
[
"starred"
]
=
{
title
:
"Starred
Boards
"
,
title
:
"Starred"
,
icon
:
"fa fa-star-o"
,
icon
:
"fa fa-star-o"
,
score
:
-
2
,
score
:
-
2
,
expanded
:
this
.
starredIsOpen
,
expanded
:
this
.
starredIsOpen
,
...
...
public/app/core/specs/search_srv.jest.ts
View file @
2a360c45
...
@@ -100,7 +100,7 @@ describe("SearchSrv", () => {
...
@@ -100,7 +100,7 @@ describe("SearchSrv", () => {
});
});
it
(
"should include starred dashboards section"
,
()
=>
{
it
(
"should include starred dashboards section"
,
()
=>
{
expect
(
results
[
0
].
title
).
toBe
(
"Starred
Boards
"
);
expect
(
results
[
0
].
title
).
toBe
(
"Starred"
);
expect
(
results
[
0
].
items
.
length
).
toBe
(
1
);
expect
(
results
[
0
].
items
.
length
).
toBe
(
1
);
});
});
});
});
...
@@ -128,7 +128,7 @@ describe("SearchSrv", () => {
...
@@ -128,7 +128,7 @@ describe("SearchSrv", () => {
});
});
it
(
"should not show starred in recent"
,
()
=>
{
it
(
"should not show starred in recent"
,
()
=>
{
expect
(
results
[
1
].
title
).
toBe
(
"Recent
Boards
"
);
expect
(
results
[
1
].
title
).
toBe
(
"Recent"
);
expect
(
results
[
1
].
items
[
0
].
title
).
toBe
(
"recent"
);
expect
(
results
[
1
].
items
[
0
].
title
).
toBe
(
"recent"
);
});
});
...
...
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