mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 08:05:03 +00:00
fix search to read from database
This commit is contained in:
1 parent
88247e0553
commit
79a7161827
12 files changed
+67
-64
No files matched your search
@@ -123,16 +123,16 @@ export default defineStore("search", () => {
|
||||
.then(() => scrollOnLoad());
|
||||
}
|
||||
|
||||
function updateLoadCounter(type: string, value: number) {
|
||||
function updateLoadCounter(type: string) {
|
||||
switch (type) {
|
||||
case "tracks":
|
||||
loadCounter.tracks += value;
|
||||
loadCounter.tracks += 6;
|
||||
break;
|
||||
case "albums":
|
||||
loadCounter.albums += value;
|
||||
loadCounter.albums += 6;
|
||||
break;
|
||||
case "artists":
|
||||
loadCounter.artists += value;
|
||||
loadCounter.artists += 6;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user