show toast if album return 204

This commit is contained in:
geoffrey45
2022-06-23 08:30:55 +03:00
parent 5fb920f958
commit de7aba3ba7
7 changed files with 51 additions and 43 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { defineStore } from "pinia";
import { useNotifStore } from "../notification";
import { Track, Artist, AlbumInfo } from "../../interfaces";
import {
getAlbumTracks,
@@ -21,7 +22,7 @@ export default defineStore("album", {
* @param albumartist artist of the album
*/
async fetchTracksAndArtists(title: string, albumartist: string) {
const tracks = await getAlbumTracks(title, albumartist);
const tracks = await getAlbumTracks(title, albumartist, useNotifStore);
const artists = await getAlbumArtists(title, albumartist);
this.tracks = tracks.tracks;