From 25a2fdad04f78bc075ea3b872f9a94f5a7f44a93 Mon Sep 17 00:00:00 2001 From: hexxa Date: Sat, 11 Dec 2021 21:38:40 +0800 Subject: [PATCH] fix(fe/panes): uploading panel is not updated --- src/client/web/src/components/panel_files.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/web/src/components/panel_files.tsx b/src/client/web/src/components/panel_files.tsx index 52585f0..d2df355 100644 --- a/src/client/web/src/components/panel_files.tsx +++ b/src/client/web/src/components/panel_files.tsx @@ -99,6 +99,7 @@ export class FilesPanel extends React.Component { .self() .then(() => { this.props.update(updater().updateLogin); + this.props.update(updater().updateUploadingsInfo); }); } @@ -107,9 +108,11 @@ export class FilesPanel extends React.Component { .setItems(this.props.filesInfo.dirPath) .then(() => { this.props.update(updater().updateFilesInfo); + this.props.update(updater().updateUploadingsInfo); }); } else { this.props.update(updater().updateFilesInfo); + this.props.update(updater().updateUploadingsInfo); } }; @@ -124,8 +127,9 @@ export class FilesPanel extends React.Component { fileList = fileList.push(event.target.files[i]); } updater().addUploads(fileList); - this.props.update(updater().updateFilesInfo); - this.props.update(updater().updateSharingsInfo); + this.props.update(updater().updateUploadingsInfo); + // this.props.update(updater().updateFilesInfo); + // this.props.update(updater().updateSharingsInfo); }; onNewFolderNameChange = (ev: React.ChangeEvent) => {