You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bit4sat/web/src/DownloadLink.vue

26 lines
472 B
Vue

<template>
<div class="download">
<p>upload id: <span class="last-upload">{{ id }}</span></p>
<p>download: <a :href="link" class="dl-link">{{link}}</a></p>
</div>
</template>
<script>
const baseDlPath = "/d/"
export default {
props: ['id'],
mounted(){
},
computed:{
link(){
let linkTarget = baseDlPath + this.id
return new URL(linkTarget, window.location.toString())
}
}
}
</script>