client: fix sending multiple requests

on songlist click
This commit is contained in:
geoffrey45
2021-12-22 09:22:22 +03:00
parent 36999d8061
commit 81c8ae8629
7 changed files with 151 additions and 47 deletions
+2 -7
View File
@@ -5,7 +5,7 @@
</div>
<div id="scrollable" ref="scrollable">
<FolderList :folders="folders" />
<SongList :songs="songs" @updateQueue="updateQueue" />
<SongList :songs="songs" />
</div>
</div>
</template>
@@ -27,7 +27,7 @@ export default {
FolderList,
SearchBox,
},
setup(props, context) {
setup() {
const route = useRoute();
const path = ref(route.params.path);
@@ -39,10 +39,6 @@ export default {
const scrollable = ref(null);
const loading = ref(false);
const updateQueue = (queue) => {
context.emit("sendQueue", queue);
};
onMounted(() => {
const getPathFolders = (path, last_id) => {
loading.value = true;
@@ -96,7 +92,6 @@ export default {
path,
scrollable,
loading,
updateQueue,
};
},
};