Skip to content

Commit

Permalink
feat(album): Add downling link (tamland#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawndev committed Nov 13, 2022
1 parent 36a6fec commit 56d95bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/library/album/AlbumDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<ContextMenuItem icon="plus" @click="addToQueue">
Add to queue
</ContextMenuItem>
<ContextMenuItem icon="download" @click="download">
Download
</ContextMenuItem>
</b-dropdown>
</div>
</div>
Expand Down Expand Up @@ -100,6 +103,9 @@
toggleFavourite() {
return this.$store.dispatch('favourites/toggle', { id: this.id, type: 'album' })
},
download() {
window.location.href = this.$api.getDownloadUrl(this.album?.id)
},
}
})
</script>
Expand Down

0 comments on commit 56d95bd

Please sign in to comment.