Skip to content

🎧 Your Personal Streaming Service

Remove deprecation warning about `notify`

Deluand968f7f530a2
diff --git a/ui/src/dialogs/AddToPlaylistDialog.js b/ui/src/dialogs/AddToPlaylistDialog.js
index 6033d1031..db768027e 100644
--- a/ui/src/dialogs/AddToPlaylistDialog.js
+++ b/ui/src/dialogs/AddToPlaylistDialog.js
@@ -54,15 +54,19 @@ export const AddToPlaylistDialog = () => {
})
.then(() => {
const len = trackIds.length
- notify('message.songsAddedToPlaylist', 'info', { smart_count: len })
+ notify('message.songsAddedToPlaylist', {
+ messageArgs: { smart_count: len },
+ })
onSuccess && onSuccess(value, len)
refresh()
})
.catch(() => {
- notify('ra.page.error', 'warning')
+ notify('ra.page.error', { type: 'warning' })
})
} else {
- notify('message.songsAddedToPlaylist', 'info', { smart_count: 0 })
+ notify('message.songsAddedToPlaylist', {
+ messageArgs: { smart_count: 0 },
+ })
}
}