Testing and patching notifications and modals; exploring icons for best favicon + manifest combo

This commit is contained in:
James Barnsley
2018-07-25 21:33:14 +12:00
parent ebfa3bbab1
commit c167ab72ae
12 changed files with 97 additions and 48 deletions

View File

@ -185,13 +185,15 @@ const CoreMiddleware = (function(){
break
case 'PLAYLIST_TRACKS_ADDED':
store.dispatch(uiActions.createNotification({content: 'Added '+action.tracks_uris.length+' tracks to playlist'}))
store.dispatch(uiActions.createNotification({type: 'info', content: 'Added '+action.tracks_uris.length+' tracks to playlist'}))
switch(helpers.uriSource(action.key)){
case 'spotify':
store.dispatch(spotifyActions.getPlaylist(action.key))
store.dispatch(spotifyActions.getPlaylist(action.key));
break
case 'm3u':
if (store.getState().mopidy.connected ) store.dispatch(mopidyActions.getPlaylist(action.key))
if (store.getState().mopidy.connected ) store.dispatch(mopidyActions.getPlaylist(action.key));
break
}
next(action)

View File

@ -1564,7 +1564,7 @@ const MopidyMiddleware = (function(){
hashHistory.push(global.baseURL+'playlist/'+encodeURIComponent(response.uri));
}
store.dispatch(uiActions.createNotification({content: 'Saved'}));
store.dispatch(uiActions.createNotification({type: 'info', content: 'Playlist saved'}));
})
});
break
@ -1614,7 +1614,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({content: 'Created playlist'}))
store.dispatch(uiActions.createNotification({type: 'info', content: 'Created playlist'}))
store.dispatch({
type: 'PLAYLIST_LOADED',

View File

@ -1470,7 +1470,7 @@ export function createPlaylist(name, description, is_public, is_collaborative){
uris: [response.uri]
})
dispatch(uiActions.createNotification({content: 'Created playlist'}));
dispatch(uiActions.createNotification({type: 'info', content: 'Created playlist'}));
},
error => {
dispatch(coreActions.handleException(
@ -1497,7 +1497,7 @@ export function savePlaylist(uri, name, description, is_public, is_collaborative
dispatch, getState, 'users/'+ getState().spotify.me.id +'/playlists/'+ helpers.getFromUri('playlistid',uri), 'PUT', data)
.then(
response => {
dispatch(uiActions.createNotification({content: 'Saved'}));
dispatch(uiActions.createNotification({type: 'info', content: 'Playlist saved'}));
// Save the image
if (image){