fix albumView using watch function

- other minor changes to almost all files
This commit is contained in:
geoffrey45
2022-02-02 21:45:23 +03:00
parent bdfbb59d76
commit 73dec9189e
27 changed files with 231 additions and 231 deletions
+5 -3
View File
@@ -4,6 +4,7 @@ import album from "./album.js";
import state from "./state.js";
function toAlbum(title, artist) {
state.loading.value = true;
album
.getAlbumTracks(title, artist)
.then((data) => {
@@ -24,15 +25,16 @@ function toAlbum(title, artist) {
}
})
)
.then(
.then(() => {
Router.push({
name: "AlbumView",
params: {
album: title,
artist: artist,
},
})
)
});
state.loading.value = false;
})
.catch((error) => {
console.log(error);
});