From d2f08cf822d767196d9e5a07d6bfb20ba0bb5158 Mon Sep 17 00:00:00 2001 From: Steven Job Date: Sun, 8 Jan 2017 07:19:51 +0000 Subject: [PATCH] fix: fix spelling error (#175) --- src/classes/uploaded-file.class.ts | 2 +- src/services/ngx-uploader.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/classes/uploaded-file.class.ts b/src/classes/uploaded-file.class.ts index e5ee4c6f..4f69e403 100644 --- a/src/classes/uploaded-file.class.ts +++ b/src/classes/uploaded-file.class.ts @@ -34,7 +34,7 @@ export class UploadedFile { this.speedAverageHumanized = null; } - setProgres(progress: Object): void { + setProgress(progress: Object): void { this.progress = progress; } diff --git a/src/services/ngx-uploader.ts b/src/services/ngx-uploader.ts index a1262f3f..4cd3bee9 100644 --- a/src/services/ngx-uploader.ts +++ b/src/services/ngx-uploader.ts @@ -63,13 +63,13 @@ export class NgUploaderService { let percent = Math.round(e.loaded / e.total * 100); if (speed === 0) { - uploadingFile.setProgres({ + uploadingFile.setProgress({ total: e.total, loaded: e.loaded, percent: percent }); } else { - uploadingFile.setProgres({ + uploadingFile.setProgress({ total: e.total, loaded: e.loaded, percent: percent,