From 2a360c45a2eebc92f668dcc2dab3191e1e094516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 20 Dec 2017 12:26:52 +0100 Subject: [PATCH] ux: minor name change to search sections --- public/app/core/services/search_srv.ts | 4 ++-- public/app/core/specs/search_srv.jest.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/core/services/search_srv.ts b/public/app/core/services/search_srv.ts index 7f33f95b024..3700601151d 100644 --- a/public/app/core/services/search_srv.ts +++ b/public/app/core/services/search_srv.ts @@ -18,7 +18,7 @@ export class SearchSrv { return this.queryForRecentDashboards().then(result => { if (result.length > 0) { sections["recent"] = { - title: "Recent Boards", + title: "Recent", icon: "fa fa-clock-o", score: -1, removable: true, @@ -76,7 +76,7 @@ export class SearchSrv { return this.backendSrv.search({ starred: true, limit: 5 }).then(result => { if (result.length > 0) { sections["starred"] = { - title: "Starred Boards", + title: "Starred", icon: "fa fa-star-o", score: -2, expanded: this.starredIsOpen, diff --git a/public/app/core/specs/search_srv.jest.ts b/public/app/core/specs/search_srv.jest.ts index e9bbe0d9d61..104be566fc8 100644 --- a/public/app/core/specs/search_srv.jest.ts +++ b/public/app/core/specs/search_srv.jest.ts @@ -100,7 +100,7 @@ describe("SearchSrv", () => { }); 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); }); }); @@ -128,7 +128,7 @@ describe("SearchSrv", () => { }); 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"); });