Wrong grammar with single file uploaded (#1468)

#1449 Wrong grammar with single file upload
This commit is contained in:
Maurizio Vitale
2017-01-16 11:50:23 +00:00
committed by Eugenio Romano
parent f5d2269c2e
commit aba4c8ef3e
4 changed files with 8 additions and 1 deletions

View File

@@ -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();
});
}