Fix: Handle image removal in product editor

- Add support for removeImage/removeImageBack flags in updateProduct action
- When Remove button is clicked, client sets isRemoved=true to hide UI
- Server action checks removeImage/removeImageBack form fields and sets imageUrl/imageUrlBack to null
- Also reset printArea to default when image is removed
- Tested: Remove button now successfully clears images and persists changes to database
This commit is contained in:
Andymick
2026-07-19 12:01:27 +01:00
parent 56e31b4fae
commit 285a8ab21f
3 changed files with 28 additions and 6 deletions
+9 -1
View File
@@ -94,7 +94,15 @@
"mcp__visualize__show_widget",
"Bash(git branch *)",
"Bash(git remote *)",
"Bash(git commit -m 'Fix: Remove duplicate success variable in admin orders page *)"
"Bash(git commit -m 'Fix: Remove duplicate success variable in admin orders page *)",
"Bash(git commit -m 'UX: Reorder admin menu to highlight Design Approvals and Shipping rates *)",
"Bash(git commit -m 'Fix: Add Design Approvals and Shipping rates to admin dropdown menu *)",
"Bash(git log *)",
"Bash(git commit -m 'Fix: Set Classic Tee photoRecolorable to false for proper image display *)",
"Bash(git commit -m 'Fix: Remove encType from product edit form with Server Action *)",
"Bash(git commit -m 'Feature: Add file removal and print area edit toggles to photo upload *)",
"Bash(git commit -m 'Fix: Show Remove and Modify print area buttons for existing images *)",
"Bash(git commit -m 'Fix: Handle image removal in product editor *)"
]
}
}