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:
@@ -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 *)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user