tag colors
Some checks failed
Go / build (push) Has been cancelled

This commit is contained in:
2025-04-14 00:38:23 +02:00
parent 9d2819cac4
commit 821f4e526f
5 changed files with 527 additions and 14 deletions

View File

@@ -535,6 +535,7 @@ func (rc *shopItemController) DeleteItemHandler(c *gin.Context) {
func (rc *shopItemController) TagHandler(ctx *gin.Context) {
name := ctx.PostForm("name")
color := ctx.PostForm("color")
action := ctx.PostForm("action")
tag, err := repositories.Tags.GetById(ctx.Param("id"))
@@ -547,6 +548,7 @@ func (rc *shopItemController) TagHandler(ctx *gin.Context) {
if action == "update" {
tag.Name = name
tag.Color = color
tag, err = repositories.Tags.Update(tag)
if err != nil {