fix: remake admin items
This commit is contained in:
@@ -74,7 +74,6 @@ func UpdateItem(c *gin.Context) {
|
|||||||
City: input.City,
|
City: input.City,
|
||||||
Price: input.Price,
|
Price: input.Price,
|
||||||
Category: input.Category,
|
Category: input.Category,
|
||||||
Stock: input.Stock,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
c.JSON(http.StatusOK, item)
|
c.JSON(http.StatusOK, item)
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ function ItemFormModal({ item, onClose, onSaved }) {
|
|||||||
placeholder="Остаток"
|
placeholder="Остаток"
|
||||||
value={form.stock}
|
value={form.stock}
|
||||||
onChange={handleChange("stock")}
|
onChange={handleChange("stock")}
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
<input
|
<input
|
||||||
className="bg-white/10 rounded px-3 py-2"
|
className="bg-white/10 rounded px-3 py-2"
|
||||||
|
|||||||
Reference in New Issue
Block a user