Publish: restore percentage label when uploading (#1809)

Closes #1804

Can't recall why it was removed ... probably something not important.
This commit is contained in:
infinite-persistence 2022-07-07 20:53:57 +08:00 committed by GitHub
parent cdcf7e7772
commit 54122f8998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ export default function WebUploadItem(props: Props) {
}
} else {
const progressInt = parseInt(progress);
return progressInt === 100 ? __('Processing...') : __('Uploading...');
return progressInt === 100 ? __('Processing...') : `${__('Uploading...')} (${progressInt}%)`;
}
} else {
return __('Uploading...');