mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Wrong grammar with single file uploaded (#1468)
#1449 Wrong grammar with single file upload
This commit is contained in:
committed by
Eugenio Romano
parent
f5d2269c2e
commit
aba4c8ef3e
@@ -46,6 +46,8 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
||||
|
||||
totalCompleted: number = 0;
|
||||
|
||||
totalCompletedMsg: string = 'FILE_UPLOAD.MESSAGES.SINGLE_COMPLETED';
|
||||
|
||||
private _isDialogMinimized: boolean = false;
|
||||
|
||||
private listSubscription: any;
|
||||
@@ -72,6 +74,9 @@ export class FileUploadingDialogComponent implements OnInit, OnDestroy {
|
||||
if (this.uploadService.totalCompleted$) {
|
||||
this.counterSubscription = this.uploadService.totalCompleted$.subscribe((total: number) => {
|
||||
this.totalCompleted = total;
|
||||
if (this.totalCompleted > 1) {
|
||||
this.totalCompletedMsg = 'FILE_UPLOAD.MESSAGES.COMPLETED';
|
||||
}
|
||||
this.cd.detectChanges();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user