Search uses URI for added_from compatibility

This commit is contained in:
James Barnsley
2017-05-05 10:47:18 +12:00
parent 0894fe5109
commit af57e6f346
6 changed files with 18 additions and 22 deletions

View File

@ -126,7 +126,7 @@ class Search extends React.Component{
return (
<div>
<section className="list-wrapper">
<TrackList tracks={ tracks } show_source_icon />
<TrackList tracks={tracks} uri={'iris:search:'+this.props.params.type+':'+this.props.params.query} show_source_icon />
<LazyLoadListener enabled={this.props['tracks_more'] && spotify_search_enabled} loadMore={ () => this.loadMore('tracks') }/>
</section>
</div>
@ -184,7 +184,7 @@ class Search extends React.Component{
<section className="list-wrapper">
<h4 className="left-padding"><Link to={global.baseURL+'search/'+this.props.params.query+'/tracks'}>Tracks</Link></h4>
<TrackList show_source_icon tracks={tracks} />
<TrackList tracks={tracks} uri={'iris:search:'+this.props.params.type+':'+this.props.params.query} show_source_icon />
<LazyLoadListener enabled={this.props['tracks_more'] && spotify_search_enabled} loadMore={ () => this.loadMore('tracks') }/>
</section>
@ -195,7 +195,7 @@ class Search extends React.Component{
handleTypeChange(val){
this.props.uiActions.hideContextMenu()
hashHistory.push(global.baseURL+'search/'+val+'/'+this.props.params.query)
hashHistory.push(global.baseURL+'search/iris:search:'+val+':'+this.props.params.query)
}
render(){