Only count images in an album in photo selector (#17459)
This commit is contained in:
parent
5b765f873b
commit
f5038f8e24
|
@ -33,7 +33,12 @@
|
|||
[quo/text
|
||||
{:size :paragraph-2
|
||||
:style {:color (colors/theme-colors colors/neutral-50 colors/neutral-40)}}
|
||||
(when size (str size " " (i18n/label :t/images)))]]
|
||||
(when size
|
||||
(str size
|
||||
" "
|
||||
(if (= size 1)
|
||||
(i18n/label :t/image)
|
||||
(i18n/label :t/images))))]]
|
||||
(when selected?
|
||||
[rn/view
|
||||
{:style {:position :absolute
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
:uri (get-in (first (:edges res-recent)) [:node :image :uri])}])
|
||||
;; Get albums, then loop over albums and get each one's cover (first photo)
|
||||
(cameraroll/get-albums
|
||||
{:assetType "All"}
|
||||
{:assetType :Photos}
|
||||
(fn [res-albums]
|
||||
(let [response-count (count res-albums)]
|
||||
(if (pos? response-count)
|
||||
|
|
Loading…
Reference in New Issue