show toast if album return 204

This commit is contained in:
geoffrey45 committed 2022-06-23 08:30:55 +03:00
1 parent 5fb920f958
commit de7aba3ba7
7 files changed
+51 -43

No files matched your search

+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;