mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-04 07:09:14 +00:00
Display image upload error as alert
Not the nicest UX but better than nothing.
This commit is contained in:
@@ -13,3 +13,5 @@ angular.module("ofn.admin").factory "ProductImageService", (FileUploader, SpreeA
|
||||
@imageUploader.onSuccessItem = (image, response) =>
|
||||
product.thumb_url = response.thumb_url
|
||||
product.image_url = response.image_url
|
||||
@imageUploader.onErrorItem = (image, response) =>
|
||||
alert(response.errors.join("\n"))
|
||||
|
||||
Reference in New Issue
Block a user