Artist lists; Context menu title (custom)
This commit is contained in:
@ -13,7 +13,7 @@ export default class ArtistList extends React.Component{
|
||||
if( !this.props.artists ) return null
|
||||
|
||||
return (
|
||||
<div className="artist-list">
|
||||
<div className="list artist-list">
|
||||
{
|
||||
this.props.artists.map( (artist, index) => {
|
||||
if( artist.uri ){
|
||||
|
||||
@ -266,8 +266,13 @@ class ContextMenu extends React.Component{
|
||||
var context = this.getContext()
|
||||
|
||||
if (context.name == 'custom'){
|
||||
return null
|
||||
// TODO: make this the page title
|
||||
return (
|
||||
<span className="title">
|
||||
<div className="text">
|
||||
{this.props.menu.title}
|
||||
</div>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
switch (context.type){
|
||||
|
||||
@ -21,6 +21,7 @@ export default class Header extends React.Component{
|
||||
var data = {
|
||||
e: e,
|
||||
context: 'custom',
|
||||
title: this.props.title,
|
||||
options: options
|
||||
}
|
||||
this.props.uiActions.showContextMenu(data)
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.artist-list {
|
||||
&.artist-list {
|
||||
.artist {
|
||||
display: block;
|
||||
border: 0;
|
||||
|
||||
Reference in New Issue
Block a user