Commit 035b7247 by Marcus Efraimsson

dashboards: remove slug property in dashboard search responses

Removes slug property in dashboard search responses since this property isn't needed
anymore and it haven't been released to any stable release.
parent 92a0171a
......@@ -17,7 +17,6 @@ type Hit struct {
Title string `json:"title"`
Uri string `json:"uri"`
Url string `json:"url"`
Slug string `json:"slug"`
Type HitType `json:"type"`
Tags []string `json:"tags"`
IsStarred bool `json:"isStarred"`
......
......@@ -270,7 +270,6 @@ func makeQueryResult(query *search.FindPersistedDashboardsQuery, res []Dashboard
Title: item.Title,
Uri: "db/" + item.Slug,
Url: url,
Slug: item.Slug,
Type: getHitType(item),
FolderId: item.FolderId,
FolderTitle: item.FolderTitle,
......
......@@ -134,7 +134,6 @@ export class SearchSrv {
items: [],
toggle: this.toggleFolder.bind(this),
url: hit.url,
slug: hit.slug,
icon: 'fa fa-folder',
score: _.keys(sections).length,
};
......@@ -154,7 +153,6 @@ export class SearchSrv {
uid: hit.uid,
title: hit.folderTitle,
url: hit.url,
slug: hit.slug,
items: [],
icon: 'fa fa-folder-open',
toggle: this.toggleFolder.bind(this),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment