Fix: Correctly hide zip/tar.gz download btns

This commit is contained in:
Christoph Wiechert
2017-05-07 23:16:17 +02:00
parent 7ee6e80fda
commit e53506363a

View File

@@ -22,7 +22,7 @@
.panel-heading .panel-heading
strong Files strong Files
div.pull-right(style="margin-top:-5px;") 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!") a.btn.btn-sm.btn-default(@click="downloadAll('zip')", title="Archive download is not resumeable!")
i.fa.fa-fw.fa-fw.fa-download i.fa.fa-fw.fa-fw.fa-download
| zip | zip
@@ -75,7 +75,7 @@
computed: { computed: {
downloadsAvailable: function() { 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
} }
}, },