mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
notify when song added to playlist by context menu
This commit is contained in:
@@ -219,6 +219,14 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
|
||||
onSuccess: () => {},
|
||||
},
|
||||
);
|
||||
|
||||
toast.success({
|
||||
message: t('form.addToPlaylist.success', {
|
||||
message: allSongIds.length,
|
||||
numOfPlaylists: 1,
|
||||
postProcess: 'sentenceCase',
|
||||
}),
|
||||
});
|
||||
} catch (error) {
|
||||
toast.error({
|
||||
message: (error as Error).message,
|
||||
|
||||
Reference in New Issue
Block a user