mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
WIP: dashboard search by folder + toggle for list or tree mode
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user