Merge pull request #10694 from grafana/7883_backend

backend for new url structure.
This commit is contained in:
Carl Bergquist
2018-02-01 09:35:00 +01:00
committed by GitHub
10 changed files with 464 additions and 236 deletions

View File

@ -209,7 +209,7 @@ func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) Response {
}
if err != nil {
if err == m.ErrDashboardWithSameNameExists {
if err == m.ErrDashboardWithSameUIDExists {
return Json(412, util.DynMap{"status": "name-exists", "message": err.Error()})
}
if err == m.ErrDashboardVersionMismatch {