Improved shop
This commit is contained in:
@ -26,5 +26,5 @@ func Get(ctx *aero.Context) string {
|
||||
return ctx.Error(http.StatusInternalServerError, "Error fetching inventory data", err)
|
||||
}
|
||||
|
||||
return ctx.HTML(components.Inventory(inventory, viewUser))
|
||||
return ctx.HTML(components.Inventory(inventory, viewUser, user))
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
component Inventory(inventory *arn.Inventory, viewUser *arn.User)
|
||||
ShopTabs
|
||||
component Inventory(inventory *arn.Inventory, viewUser *arn.User, user *arn.User)
|
||||
ShopTabs(user)
|
||||
|
||||
.inventory(data-api="/api/inventory/" + viewUser.ID)
|
||||
for index, slot := range inventory.Slots
|
||||
if slot.ItemID == ""
|
||||
|
Reference in New Issue
Block a user