this.onArtistClick(
e,
artist,
index,
)}
@contextmenu=${(e: MouseEvent) =>
this.onArtistContextMenu(
e,
artist,
)}
@keydown=${(e: KeyboardEvent) => {
if (
e.key === 'Enter' ||
e.key === ' '
) {
e.preventDefault();
this.clearSelection();
this.dispatchEvent(
new CustomEvent(
'navigate',
{
bubbles: true,
composed: true,
detail: {
view: 'artist-details',
artistId:
artist.ID,
artistName:
artist.Name,
},
},
),
);
}
}}
>
${this.renderArtistAvatar(artist)}
${artist.Name}
`;
}
private renderContextMenu() {
return html`
`;
}
override render() {
if (this.loading) {
return html`
${this.searchCtrl.term
? 'No artists match your search.'
: 'No artists in library.'}
`;
}
return html`
${searchBar}