WIP: dashboard search by folder + toggle for list or tree mode

This commit is contained in:
Daniel Lee
2017-06-01 23:30:31 +02:00
parent 7381d2565d
commit c602afb9c6
5 changed files with 71 additions and 27 deletions

View File

@@ -46,6 +46,8 @@ func searchHandler(query *Query) error {
OrgId: query.OrgId,
DashboardIds: query.DashboardIds,
Type: query.Type,
ParentId: query.FolderId,
Mode: query.Mode,
}
if err := bus.Dispatch(&dashQuery); err != nil {

View File

@@ -48,6 +48,8 @@ type Query struct {
IsStarred bool
Type string
DashboardIds []int
FolderId int64
Mode string
Result HitList
}
@@ -59,6 +61,8 @@ type FindPersistedDashboardsQuery struct {
IsStarred bool
DashboardIds []int
Type string
ParentId int64
Mode string
Result HitList
}