Display image upload error as alert

Not the nicest UX but better than nothing.
This commit is contained in:
Maikel Linke
2022-06-14 15:07:46 +10:00
parent 5f11b6a650
commit f3f0a84915

View File

@@ -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"))