Skip to content

Commit

Permalink
Display download link for file only if the file url contains 'http'
Browse files Browse the repository at this point in the history
  • Loading branch information
jsheunis committed Oct 1, 2023
1 parent f2a0307 commit 498c278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad_catalog/catalog/templates/item-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span v-else-if="isDataset"><span v-if="item.state == 'disabled'" class="subdataset-disabled"> <i class="fas fa-database"></i> {{ displayText }}</span><span v-else> <i class="fas fa-database"></i> <a class="subdataset" @click="selectDataset($event, item, item.id)">{{ displayText }}</a></span></span>
<!-- File -->
<span v-else> <i class="far fa-file-alt"></i>
<span v-if="downloadURL">
<span v-if="downloadURL.includes('http')">
<a :href="downloadURL" :download="displayText">{{ displayText }}</a>
</span>
<span v-else>{{ displayText }}</span>
Expand Down

0 comments on commit 498c278

Please sign in to comment.