Merge branch '239-tracks-download' into 'develop'

Resolve "Favorites downloading not working"

Closes #239

See merge request funkwhale/funkwhale!228
merge-requests/237/head
Eliot Berriot 2018-06-05 17:48:03 +00:00
commit 08bca983a7
3 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1 @@
Fixed broken track download modal (overflow and wrong URL) (#239)

Wyświetl plik

@ -26,7 +26,11 @@ export default {
return url
}
if (url.startsWith('/')) {
return config.BACKEND_URL + url.substr(1)
let rootUrl = (
window.location.protocol + '//' + window.location.hostname +
(window.location.port ? ':' + window.location.port : '')
)
return rootUrl + url
} else {
return config.BACKEND_URL + url
}

Wyświetl plik

@ -84,4 +84,7 @@ export default {
tr:not(:hover) .favorite-icon:not(.favorited) {
display: none;
}
pre {
overflow-x: scroll;
}
</style>