add functionality to play button on artist page

This commit is contained in:
geoffrey45
2022-12-06 23:29:14 +03:00
committed by Mungai Njoroge
parent bb95011dff
commit 90dd1a1fe8
12 changed files with 145 additions and 43 deletions
+13
View File
@@ -24,6 +24,7 @@ import AlbumSvg from "@/assets/icons/album.svg";
import FolderSvg from "@/assets/icons/folder.svg";
import PlaylistSvg from "@/assets/icons/playlist.svg";
import SearchSvg from "@/assets/icons/search.svg";
import ArtistSvg from "@/assets/icons/artist.svg";
import { RouteLocationRaw } from "vue-router";
@@ -82,6 +83,18 @@ function getSource() {
},
};
case FromOptions.artist:
return {
name: source.artistname,
icon: ArtistSvg,
location: {
name: Routes.artist,
params: {
hash: source.artisthash,
},
},
};
default:
return { name: "👻 No source", location: {} };
}