fix(ui): replace bulk "delete" label with "remove" in playlists

Fix #3525

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-03-06 07:47:44 -05:00
parent 5869f7caaf
commit 1c192d8a6d

View file

@ -4,6 +4,7 @@ import {
useUnselectAll, useUnselectAll,
ResourceContextProvider, ResourceContextProvider,
} from 'react-admin' } from 'react-admin'
import { MdOutlinePlaylistRemove } from 'react-icons/md'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
// Replace original resource with "fake" one for removing tracks from playlist // Replace original resource with "fake" one for removing tracks from playlist
@ -24,6 +25,8 @@ const PlaylistSongBulkActions = ({
<Fragment> <Fragment>
<BulkDeleteButton <BulkDeleteButton
{...rest} {...rest}
label={'ra.action.remove'}
icon={<MdOutlinePlaylistRemove />}
resource={mappedResource} resource={mappedResource}
onClick={onUnselectItems} onClick={onUnselectItems}
/> />