Context menu context and titles; List unification

This commit is contained in:
James Barnsley
2017-03-13 21:19:09 +13:00
parent 72c31f045b
commit 0e72f2a52e
13 changed files with 42 additions and 16 deletions

View File

@ -268,6 +268,7 @@ class ContextMenu extends React.Component{
if (context.name == 'custom'){
return (
<span className="title">
<div className="background generic"></div>
<div className="text">
{this.props.menu.title}
</div>
@ -311,6 +312,7 @@ class ContextMenu extends React.Component{
<div className="text">
{context.items_count} items
</div>
<div className="background generic"></div>
</span>
)
break
@ -392,7 +394,7 @@ class ContextMenu extends React.Component{
var start_radio = (
<span className="menu-item-wrapper">
<a className="menu-item" onClick={e => this.startRadio(e)}>
<span className="label">Start {this.context.nice_name} radio</span>
<span className="label">Start radio</span>
</a>
</span>
)

View File

@ -3,7 +3,7 @@ import React, { PropTypes } from 'react'
import { Link } from 'react-router'
import Thumbnail from './Thumbnail'
export default class ArtistList extends React.Component{
export default class RelatedArtists extends React.Component{
constructor(props) {
super(props)
@ -13,7 +13,7 @@ export default class ArtistList extends React.Component{
if( !this.props.artists ) return null
return (
<div className="list artist-list">
<div className="list related-artist-list">
{
this.props.artists.map( (artist, index) => {
if( artist.uri ){

View File

@ -132,7 +132,7 @@ class TrackList extends React.Component{
var selected_tracks = this.selectedTracks()
var data = {
e: e,
context: (this.props.context ? this.props.context : 'track'),
context: (this.props.context ? this.props.context+'-track' : 'track'),
tracklist_uri: (this.props.uri ? this.props.uri : null),
items: selected_tracks,
uris: helpers.asURIs(selected_tracks),