UX: Adds 'Processing Upload' to the composer status area during upload optimization (#13556)

This commit is contained in:
Rafael dos Santos Silva 2021-06-28 18:22:22 -03:00 committed by GitHub
parent 99da221034
commit d860e2717b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 1 deletions

View File

@ -635,6 +635,7 @@ export default Component.extend({
this.setProperties({
uploadProgress: 0,
isUploading: false,
isProcessingUpload: false,
isCancellable: false,
});
}
@ -675,6 +676,7 @@ export default Component.extend({
this.setProperties({
uploadProgress: 0,
isUploading: true,
isProcessingUpload: true,
isCancellable: false,
});
})
@ -689,6 +691,7 @@ export default Component.extend({
this.setProperties({
uploadProgress: 0,
isUploading: false,
isProcessingUpload: false,
isCancellable: false,
});
});

View File

@ -104,6 +104,7 @@ export default Controller.extend({
prioritizedCategoryId: null,
lastValidatedAt: null,
isUploading: false,
isProcessingUpload: false,
topic: null,
linkLookup: null,
showPreview: true,

View File

@ -118,6 +118,7 @@
popupMenuOptions=popupMenuOptions
draftStatus=model.draftStatus
isUploading=isUploading
isProcessingUpload=isProcessingUpload
allowUpload=allowUpload
uploadIcon=uploadIcon
isCancellable=isCancellable
@ -168,7 +169,11 @@
{{#if isUploading}}
<div id="file-uploading">
{{loading-spinner size="small"}}<span>{{i18n "upload_selector.uploading"}} {{uploadProgress}}%</span>
{{#if isProcessingUpload}}
{{loading-spinner size="small"}}<span>{{i18n "upload_selector.processing"}}</span>
{{else}}
{{loading-spinner size="small"}}<span>{{i18n "upload_selector.uploading"}} {{uploadProgress}}%</span>
{{/if}}
{{#if isCancellable}}
<a href id="cancel-file-upload" {{action "cancelUpload"}}>{{d-icon "times"}}</a>
{{/if}}

View File

@ -2247,6 +2247,7 @@ en:
hint: "(you can also drag & drop into the editor to upload)"
hint_for_supported_browsers: "you can also drag and drop or paste images into the editor"
uploading: "Uploading"
processing: "Processing Upload"
select_file: "Select File"
default_image_alt_text: image
supported_formats: "supported formats"