Explorar o código

allow overriding dashboards from api

bergquist %!s(int64=8) %!d(string=hai) anos
pai
achega
ff1b71bc20
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      pkg/api/dashboard.go

+ 1 - 0
pkg/api/dashboard.go

@@ -139,6 +139,7 @@ func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) Response {
 		Message:   cmd.Message,
 		OrgId:     c.OrgId,
 		UserId:    c.UserId,
+		Overwrite: cmd.Overwrite,
 	}
 
 	dashboard, err := dashboards.GetRepository().SaveDashboard(dashItem)