Fix: Correctly hide zip/tar.gz download btns
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user