Migrate to vue3 (fix #126) #127

Merged
Xefir merged 32 commits from vue3 into main 2024-08-17 12:24:28 +00:00
Showing only changes of commit 196bc23b1a - Show all commits

View File

@ -10,7 +10,7 @@
</template>
{{ title }}
</NcButton>
<NcButton v-if="url" :href="url" target="_blank">
<NcButton v-if="url" :download="filename" :href="url" target="_blank">
<template #icon>
<DownloadIcon :size="20" />
</template>
@ -70,6 +70,10 @@ export default {
episodeFileSize() {
return humanFileSize(this.size)
},
filename() {
const url = new URL(this.url)
return url.pathname.split('/').pop()
},
},
}
</script>