Forráskód Böngészése

`.openFolder()` - return progress indication (#5306)

Evgenia Karunus 9 hónapja
szülő
commit
d1c1fefe45

+ 3 - 1
packages/@uppy/provider-views/src/ProviderView/ProviderView.tsx

@@ -228,7 +228,9 @@ export default class ProviderView<M extends Meta, B extends Body> {
         currentPagePath = nextPagePath
         currentItems = currentItems.concat(items)
         this.setLoading(
-          this.plugin.uppy.i18n('loadedXFiles', { numFiles: items.length }),
+          this.plugin.uppy.i18n('loadedXFiles', {
+            numFiles: currentItems.length,
+          }),
         )
       } while (this.opts.loadAllFiles && currentPagePath)