Context menu context and titles; List unification
This commit is contained in:
@ -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>
|
||||
)
|
||||
|
||||
@ -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 ){
|
||||
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user