This PR allows the store owner to edit their store and coupons without requiring an image to be uploaded.
This effects the following pages:
/store/edit POST
/store/coupon/create POST
/store/coupon/\<id\>/edit POST
Even after changing the Haskell code in commit a892c51, it still wasn't working quite right. An image was always being uploaded even though I didn't have any image selected.
In commit c9388b2, I tried to change the javascript to make this work. I think I got it working (for /store/edit POST only), but I'm not sure it's the best solution. @arowM Can you take a look at this and let me know what you think? If it looks alright, feel free to merge it in to master. If not, let me know, or push a commit fixing it, etc.
This PR allows the store owner to edit their store and coupons without requiring an image to be uploaded.
This effects the following pages:
/store/edit
POST/store/coupon/create
POST/store/coupon/\<id\>/edit
POSTEven after changing the Haskell code in commit a892c51, it still wasn't working quite right. An image was always being uploaded even though I didn't have any image selected.
In commit c9388b2, I tried to change the javascript to make this work. I think I got it working (for
/store/edit
POST only), but I'm not sure it's the best solution. @arowM Can you take a look at this and let me know what you think? If it looks alright, feel free to merge it in to master. If not, let me know, or push a commit fixing it, etc.