Bugfixes (#11)

* Don't offer rollback for the first revision

* Fix the rollback bug

* Cosmetics

* Errors shown as alerts
This commit is contained in:
Andrey Pokhilko
2022-09-15 13:27:24 +01:00
committed by GitHub
parent 269895ae31
commit 6b8d959491
5 changed files with 81 additions and 46 deletions

View File

@@ -48,7 +48,7 @@ func (h *HelmHandler) Rollback(c *gin.Context) {
_ = c.AbortWithError(http.StatusInternalServerError, err)
return
}
c.Redirect(http.StatusOK, "/")
c.Status(http.StatusAccepted)
}
func (h *HelmHandler) History(c *gin.Context) {