From 30e3fa7cc9ad2ac7faa36ee7cf83ee0a97f008c2 Mon Sep 17 00:00:00 2001 From: ikenfin Date: Thu, 21 Feb 2019 13:12:01 +0400 Subject: [PATCH] :art: ui - show zip download only if there was files zipped --- frontend/foc_csv/src/components/exporter/Export.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/foc_csv/src/components/exporter/Export.vue b/frontend/foc_csv/src/components/exporter/Export.vue index 4b31cd7..5c91d6c 100644 --- a/frontend/foc_csv/src/components/exporter/Export.vue +++ b/frontend/foc_csv/src/components/exporter/Export.vue @@ -23,7 +23,7 @@

{{ $t('Check your download links:') }}

{{ $t('CSV file') }} - {{ $t('Images ZIP file') }} + {{ $t('Images ZIP file') }}
@@ -103,6 +103,7 @@ export default { return { msg: 'Export', errors: 0, + collectedImages: 0, imagesZipUrl: null, csvFileUrl: null } @@ -153,6 +154,8 @@ export default { this.current = position + this.collectedImages += (parseInt(response.data.message.collected_images) || 0); + if (this.current < this.total) { this.submitExportPart(callbackUrl, response.data.message) } @@ -171,6 +174,7 @@ export default { this.errors = 0 this.csvFileUrl = null this.imagesZipUrl = null + this.collectedImages = 0 try { let response = await this.$api.exporter.submitData(data.profile)