From e53506363a4b1c7544bc74eb1b10efdbcc09bcb1 Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Sun, 7 May 2017 23:16:17 +0200 Subject: [PATCH] Fix: Correctly hide zip/tar.gz download btns --- app/src/Download.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/Download.vue b/app/src/Download.vue index 01777b7..e3bc7a8 100644 --- a/app/src/Download.vue +++ b/app/src/Download.vue @@ -22,7 +22,7 @@ .panel-heading strong Files div.pull-right(style="margin-top:-5px;") - span.btn-group + span.btn-group(v-if="downloadsAvailable") a.btn.btn-sm.btn-default(@click="downloadAll('zip')", title="Archive download is not resumeable!") i.fa.fa-fw.fa-fw.fa-download | zip @@ -75,7 +75,7 @@ computed: { downloadsAvailable: function() { - return this.files.length > 1 && this.files.some(f => !f.downloaded || f.metadata.retention !== 'one-time') + return this.files.filter(f => !f.downloaded || f.metadata.retention !== 'one-time').length > 0 } },