Fix ContextMenu column label

This commit is contained in:
Deluan 2020-05-24 11:48:48 -04:00
parent 207565bde0
commit ac8f92d7ac
3 changed files with 4 additions and 1 deletions

View File

@ -143,6 +143,7 @@ SongContextMenu.propTypes = {
SongContextMenu.defaultProps = {
visible: true,
showStar: true,
addLabel: true,
}
export default SongContextMenu

View File

@ -58,6 +58,7 @@ export const SongDatagridRow = ({
? child
: cloneElement(child, {
visible: contextVisible || visible,
...child.props,
...rest,
}))
)}
@ -85,7 +86,7 @@ export const SongDatagrid = ({ multiDisc, contextVisible, ...rest }) => {
}
/>
)
return <Datagrid {...rest} body={<SongDatagridBody />} optimized />
return <Datagrid {...rest} body={<SongDatagridBody />} />
}
SongDatagrid.propTypes = {

View File

@ -72,6 +72,7 @@ const SongList = (props) => {
<DurationField source="duration" />
{isDesktop ? (
<SongContextMenu
source={'starred'}
label={translate('resources.song.fields.starred')}
sortBy={'starred DESC, starredAt ASC'}
/>