bug #5243 - using correct error code for image picker compononent
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
e09e509556
commit
d7bd95dc64
|
@ -136,7 +136,7 @@
|
||||||
(def image-picker-class js-dependencies/image-crop-picker)
|
(def image-picker-class js-dependencies/image-crop-picker)
|
||||||
|
|
||||||
(defn show-access-error [o]
|
(defn show-access-error [o]
|
||||||
(when (= "ERROR_PICKER_UNAUTHORIZED_KEY" (object/get o "code")) ; Do not show error when user cancel selection
|
(when (= "E_PERMISSION_MISSING" (object/get o "code"))
|
||||||
(utils/show-popup (i18n/label :t/error)
|
(utils/show-popup (i18n/label :t/error)
|
||||||
(i18n/label :t/photos-access-error))))
|
(i18n/label :t/photos-access-error))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue