mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
use success notification instead of warn on 0 playlist entries added (#1393)
This commit is contained in:
@@ -202,8 +202,12 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (allSongIds.length === 0) {
|
if (allSongIds.length === 0) {
|
||||||
toast.warn({
|
toast.success({
|
||||||
message: t('common.noResultsFromQuery', { postProcess: 'sentenceCase' }),
|
message: t('form.addToPlaylist.success', {
|
||||||
|
message: 0,
|
||||||
|
numOfPlaylists: 1,
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -241,8 +245,12 @@ export const AddToPlaylistAction = ({ items, itemType }: AddToPlaylistActionProp
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (songsToAdd.length === 0) {
|
if (songsToAdd.length === 0) {
|
||||||
toast.warn({
|
toast.success({
|
||||||
message: t('common.noResultsFromQuery', { postProcess: 'sentenceCase' }),
|
message: t('form.addToPlaylist.success', {
|
||||||
|
message: 0,
|
||||||
|
numOfPlaylists: 1,
|
||||||
|
postProcess: 'sentenceCase',
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user