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: {