mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 13:03:02 +00:00
add functionality to play button on artist page
This commit is contained in:
committed by
Mungai Njoroge
parent
bb95011dff
commit
90dd1a1fe8
@@ -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: {} };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user