Artist lists; Context menu title (custom)

This commit is contained in:
James Barnsley
2017-03-13 16:06:31 +13:00
parent edbb2e058c
commit 72c31f045b
4 changed files with 10 additions and 4 deletions

View File

@ -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 ){

View File

@ -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){

View File

@ -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)

View File

@ -158,7 +158,7 @@
}
}
.artist-list {
&.artist-list {
.artist {
display: block;
border: 0;