ux: minor name change to search sections
This commit is contained in:
@@ -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 {
|
|||||||
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,
|
||||||
|
|||||||
@@ -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", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
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");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user