Selaa lähdekoodia

Removed toast when searching for songs to add to playlist

theflametrooper 8 vuotta sitten
vanhempi
commit
30b1b1cbd9

+ 2 - 2
backend/logic/actions/playlists.js

@@ -317,8 +317,8 @@ let lib = {
 						console.log(err);
 						if (err) return cb({status: 'failure', message: 'Something went wrong when moving the song'});
 						playlists.updatePlaylist(playlistId, (err) => {
-							if (err) return cb({ status: 'failure', message: err});
-							cache.pub('playlist.moveSongToBottom', {playlistId, songId, userId: userId});
+							if (err) return cb({ status: 'failure', message: err });
+							cache.pub('playlist.moveSongToBottom', { playlistId, songId, userId: userId });
 							return cb({ status: 'success', message: 'Playlist has been successfully updated' });
 						})
 					});

+ 0 - 1
frontend/components/Modals/Playlists/Edit.vue

@@ -112,7 +112,6 @@
 								thumbnail: res.data.items[i].snippet.thumbnails.default.url
 							});
 						}
-						Toast.methods.addToast(res.message, 3000);
 					} else if (res.status === 'error') Toast.methods.addToast(res.message, 3000);
 				});
 			},