Remove deprecation warning about notify
This commit is contained in:
@@ -54,15 +54,19 @@ export const AddToPlaylistDialog = () => {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const len = trackIds.length
|
const len = trackIds.length
|
||||||
notify('message.songsAddedToPlaylist', 'info', { smart_count: len })
|
notify('message.songsAddedToPlaylist', {
|
||||||
|
messageArgs: { smart_count: len },
|
||||||
|
})
|
||||||
onSuccess && onSuccess(value, len)
|
onSuccess && onSuccess(value, len)
|
||||||
refresh()
|
refresh()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
notify('ra.page.error', 'warning')
|
notify('ra.page.error', { type: 'warning' })
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
notify('message.songsAddedToPlaylist', 'info', { smart_count: 0 })
|
notify('message.songsAddedToPlaylist', {
|
||||||
|
messageArgs: { smart_count: 0 },
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user