mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
- uploading fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="file-content" id="file-content-id" :class="{ 'is-offset': filesQueue > 0, 'is-dragging': isDragging }"
|
||||
<div class="file-content" id="file-content-id" :class="{ 'is-offset': filesInQueueTotal > 0, 'is-dragging': isDragging }"
|
||||
@dragover.prevent
|
||||
@drop.stop.prevent="dropUpload($event)"
|
||||
@dragover="dragEnter"
|
||||
@@ -119,7 +119,7 @@
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'filesQueue',
|
||||
'filesInQueueTotal',
|
||||
'fileInfoVisible',
|
||||
'fileInfoDetail',
|
||||
'currentFolder',
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<transition name="info-panel">
|
||||
<!--<div v-if="filesQueue.length > 0" class="upload-progress">-->
|
||||
<div class="upload-progress">
|
||||
<div v-if="fileQueue.length > 0" class="upload-progress">
|
||||
<div class="progress-title">
|
||||
|
||||
<!--Is processing-->
|
||||
@@ -10,14 +9,9 @@
|
||||
{{ $t('uploading.processing_file') }}
|
||||
</span>
|
||||
|
||||
<!--Single file upload-->
|
||||
<span v-if="!isProcessingFile && filesQueue.length === 1">
|
||||
{{ $t('uploading.progress_single_upload', {progress: uploadingProgress}) }}
|
||||
</span>
|
||||
|
||||
<!--Multi file upload-->
|
||||
<span v-if="!isProcessingFile && filesQueue.length > 1">
|
||||
{{ $t('uploading.progress', {current:'x', total: filesQueue.length, progress: uploadingProgress}) }}
|
||||
<span v-if="!isProcessingFile && fileQueue.length > 0">
|
||||
{{ $t('uploading.progress', {current:filesInQueueUploaded, total: filesInQueueTotal, progress: uploadingProgress}) }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="progress-wrapper">
|
||||
@@ -45,9 +39,11 @@
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'filesInQueueUploaded',
|
||||
'filesInQueueTotal',
|
||||
'uploadingProgress',
|
||||
'isProcessingFile',
|
||||
'filesQueue',
|
||||
'fileQueue',
|
||||
])
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user