浏览代码

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

Evgenia Karunus 9 月之前
父节点
当前提交
d1c1fefe45
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/@uppy/provider-views/src/ProviderView/ProviderView.tsx

+ 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)