fix(fe/panes): uploading panel is not updated

This commit is contained in:
hexxa 2021-12-11 21:38:40 +08:00 committed by Hexxa
parent 3133720d79
commit 25a2fdad04

View file

@ -99,6 +99,7 @@ export class FilesPanel extends React.Component<Props, State, {}> {
.self()
.then(() => {
this.props.update(updater().updateLogin);
this.props.update(updater().updateUploadingsInfo);
});
}
@ -107,9 +108,11 @@ export class FilesPanel extends React.Component<Props, State, {}> {
.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<Props, State, {}> {
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<HTMLInputElement>) => {