Updated search result view, removed delete link, added delete action from dashboard cogs dropdown
This commit is contained in:
@@ -45,7 +45,7 @@ func GetDashboard(c *middleware.Context) {
|
||||
dash := query.Result
|
||||
dto := dtos.Dashboard{
|
||||
Model: dash.Data,
|
||||
Meta: dtos.DashboardMeta{IsStarred: isStarred},
|
||||
Meta: dtos.DashboardMeta{IsStarred: isStarred, Slug: slug},
|
||||
}
|
||||
|
||||
c.JSON(200, dto)
|
||||
|
||||
@@ -26,8 +26,9 @@ type CurrentUser struct {
|
||||
}
|
||||
|
||||
type DashboardMeta struct {
|
||||
IsStarred bool `json:"isStarred"`
|
||||
IsHome bool `json:"isHome"`
|
||||
IsStarred bool `json:"isStarred"`
|
||||
IsHome bool `json:"isHome"`
|
||||
Slug string `json:"slug"`
|
||||
}
|
||||
|
||||
type Dashboard struct {
|
||||
|
||||
Reference in New Issue
Block a user