chore: switched to v1.5.2; chore: removed default export for sendAddToQueue utility
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import Downloads from '@/utils/downloads'
|
||||
import { sendAddToQueue } from '@/utils/downloads'
|
||||
|
||||
export default {
|
||||
data: () => ({
|
||||
@@ -80,7 +80,7 @@ export default {
|
||||
// If true, the click did not happen on a button but outside
|
||||
if (!target.matches('.quality-button')) return
|
||||
|
||||
Downloads.sendAddToQueue(this.url, target.dataset.qualityValue)
|
||||
sendAddToQueue(this.url, target.dataset.qualityValue)
|
||||
},
|
||||
openModal(link) {
|
||||
this.url = link
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
<script>
|
||||
import { isEmpty } from 'lodash-es'
|
||||
import { socket } from '@/utils/socket'
|
||||
import Downloads from '@/utils/downloads'
|
||||
import { sendAddToQueue } from '@/utils/downloads'
|
||||
import Utils from '@/utils/utils'
|
||||
import { playPausePreview } from '@components/globals/TheTrackPreview.vue'
|
||||
|
||||
@@ -189,7 +189,7 @@ export default {
|
||||
this.body = []
|
||||
},
|
||||
addToQueue(e) {
|
||||
Downloads.sendAddToQueue(e.currentTarget.dataset.link)
|
||||
sendAddToQueue(e.currentTarget.dataset.link)
|
||||
},
|
||||
toggleAll(e) {
|
||||
this.body.forEach(item => {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { socket } from '@/utils/socket'
|
||||
|
||||
/**
|
||||
* @param {string} url
|
||||
* @param {number} bitrate
|
||||
*/
|
||||
export function sendAddToQueue(url, bitrate = null) {
|
||||
if (!url) throw new Error('No URL given to sendAddToQueue function!')
|
||||
|
||||
@@ -16,6 +20,6 @@ export function aggregateDownloadLinks(releases) {
|
||||
return links.join(';')
|
||||
}
|
||||
|
||||
export default {
|
||||
sendAddToQueue
|
||||
}
|
||||
// export default {
|
||||
// sendAddToQueue
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user