[IMP] web: file_uploader: callback after all files have been uploaded

Part-of: odoo/odoo#96672
This commit is contained in:
Habib (ayh)
2022-08-27 19:01:11 +02:00
parent db008ff03a
commit 43f516e90d
@@ -72,7 +72,7 @@ export class FileUploader extends Component {
}
);
}
this.props.onUploaded({
await this.props.onUploaded({
name: file.name,
size: file.size,
type: file.type,
@@ -81,6 +81,9 @@ export class FileUploader extends Component {
});
this.state.isUploading = false;
}
if (this.props.multiUpload && this.props.onUploadComplete) {
this.props.onUploadComplete({});
}
}
onSelectFileButtonClick() {