From 377d06e257ac51ad4045e3f0cd2cf4233da6665a Mon Sep 17 00:00:00 2001 From: Milos Stojanovic Date: Fri, 4 Dec 2020 18:46:13 +0100 Subject: [PATCH] fixes #163 --- frontend/views/partials/Upload.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/views/partials/Upload.vue b/frontend/views/partials/Upload.vue index 6f8e467..dbd5bb5 100644 --- a/frontend/views/partials/Upload.vue +++ b/frontend/views/partials/Upload.vue @@ -9,7 +9,7 @@ - {{ lang('Uploading files', Math.round(resumable.progress()*100), formatBytes(resumable.getSize())) }} + {{ lang('Uploading files', resumable.getSize() > 0 ? Math.round(resumable.progress()*100) : 100, formatBytes(resumable.getSize())) }} ({{ lang('Paused') }}) @@ -34,7 +34,7 @@
{{ file.relativePath != '/' ? file.relativePath : '' }}/{{ file.fileName }}
- + @@ -71,7 +71,7 @@ export default { }, computed: { activeUploads() { - return this.resumable.files.length && this.resumable.progress() < 1 + return this.resumable.files.length > 0 && this.resumable.progress() < 1 }, }, watch: {