Sensibly detecting Spotify availability by access_token; Only fetch playlists to add tracks to from relevant providers, fixes #539

This commit is contained in:
James Barnsley
2020-05-12 20:32:48 +12:00
parent c18952039c
commit aff8428b5b
23 changed files with 886 additions and 717 deletions

View File

@ -1846,7 +1846,7 @@ const MopidyMiddleware = (function () {
case 'MOPIDY_CREATE_PLAYLIST':
request(socket, store, 'playlists.create', { name: action.name, uri_scheme: action.scheme })
.then((response) => {
store.dispatch(uiActions.createNotification({ level: 'warning', content: 'Created playlist' }));
store.dispatch(uiActions.createNotification({ content: 'Created playlist' }));
store.dispatch(coreActions.playlistLoaded(response));
store.dispatch({
type: 'MOPIDY_LIBRARY_PLAYLIST_CREATED',

View File

@ -1415,7 +1415,7 @@ export function createPlaylist(name, description, is_public, is_collaborative) {
uris: [response.uri],
});
dispatch(uiActions.createNotification({ level: 'warning', content: 'Created playlist' }));
dispatch(uiActions.createNotification({ content: 'Created playlist' }));
},
(error) => {
dispatch(coreActions.handleException(