1.1.2 - Crossfade, theming

This commit is contained in:
exttex
2020-11-03 10:11:37 +01:00
parent d722e4b4b0
commit 2b8f14df57
40 changed files with 1782 additions and 1183 deletions

View File

@ -45,6 +45,10 @@ export default {
type: Boolean,
default: true
},
playlistName: {
type: String,
default: null
}
},
data() {
return {
@ -71,11 +75,15 @@ export default {
},
//Add files to download queue
async download() {
if (this.qualities.indexOf(this.qualityString) == 0 || !this.qualityString) {
await this.$axios.post(`/downloads`, this.tracks);
} else {
await this.$axios.post(`/downloads?q=${this.qualityInt()}`, this.tracks);
let data = {
tracks: this.tracks,
playlistName: this.playlistName,
quality: null
}
if (this.qualities.indexOf(this.qualityString) != 0 && this.qualityString) {
data['quality'] = this.qualityInt();
}
await this.$axios.post(`/downloads`, data);
if (this.autostart) this.$axios.put('/download');
this.$emit("close");

View File

@ -79,7 +79,7 @@
</v-hover>
</v-card>
<DownloadDialog :tracks='tracks' v-if='downloadDialog' @close='downloadDialog = false'></DownloadDialog>
<DownloadDialog :playlistName='playlist.title' :tracks='tracks' v-if='downloadDialog' @close='downloadDialog = false'></DownloadDialog>
</div>