Search display

This commit is contained in:
James Barnsley
2017-03-27 08:29:18 +13:00
parent 68f8b97a6d
commit fbc34e71a0
6 changed files with 71 additions and 36 deletions

View File

@ -8,6 +8,7 @@ import FontAwesome from 'react-fontawesome'
import Thumbnail from './Thumbnail'
import ArtistSentence from './ArtistSentence'
import * as helpers from '../helpers'
import * as uiActions from '../services/ui/actions'
class AlbumGrid extends React.Component{
@ -48,9 +49,12 @@ class AlbumGrid extends React.Component{
onClick={ (e) => this.handleClick(e,global.baseURL+'album/'+album.uri) }
onContextMenu={e => this.handleContextMenu(e,album)}>
<Thumbnail size="medium" images={album.images} />
<div className="name">{ album.name }</div>
<div className="name">
{album.name}
{this.props.show_source_icon ? <FontAwesome name={helpers.sourceIcon(album.uri)} className="source" fixedWidth /> : null}
</div>
<div className="secondary">
{ album.artists ? <ArtistSentence artists={album.artists} /> : <span>-</span> }
{album.artists ? <ArtistSentence artists={album.artists} /> : <span>-</span>}
</div>
</div>
)