blueimpact / kucipong

BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Allow store and coupons to be edited without requiring an image #136

Closed cdepillabout closed 7 years ago

cdepillabout commented 7 years ago

This PR allows the store owner to edit their store and coupons without requiring an image to be uploaded.

This effects the following pages:

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.

arowM commented 7 years ago

To enhance, I created an issue #137. @cdepillabout, please check it out and assign yourself if you OK. For other parts, LGTM!