Wait for mopidy to load before connecting spotify

This commit is contained in:
James Barnsley
2017-09-11 08:37:37 +12:00
parent f625bfd3ca
commit cd8e6d0dc6
5 changed files with 26 additions and 14 deletions

View File

@ -47,6 +47,7 @@ export default class AddToPlaylistModal extends React.Component{
<div>
<h1>Add to playlist</h1>
<h2 className="grey-text">Select playlist to add {this.props.tracks_uris.length} track{this.props.tracks_uris.length>1?'s':null} to</h2>
{playlists.length <= 0 ? <div className="no-results">No playlists available</div> : null}
<div className="list small playlists">
{
playlists.map( playlist => {