Add 'download' option to album context menu

This commit is contained in:
Deluan
2020-08-05 14:57:59 -04:00
parent 8e4b2e1c06
commit 38c19eddc3
6 changed files with 35 additions and 12 deletions
+3 -1
View File
@@ -26,4 +26,6 @@ const url = (command, id, options) => {
const scrobble = (id, submit) =>
fetchUtils.fetchJson(url('scrobble', id, { submission: submit }))
export default { url, scrobble }
const download = (id, submit) => (window.location.href = url('download', id))
export default { url, scrobble, download }