Fix ContextMenu column label
This commit is contained in:
@@ -143,6 +143,7 @@ SongContextMenu.propTypes = {
|
|||||||
SongContextMenu.defaultProps = {
|
SongContextMenu.defaultProps = {
|
||||||
visible: true,
|
visible: true,
|
||||||
showStar: true,
|
showStar: true,
|
||||||
|
addLabel: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SongContextMenu
|
export default SongContextMenu
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ export const SongDatagridRow = ({
|
|||||||
? child
|
? child
|
||||||
: cloneElement(child, {
|
: cloneElement(child, {
|
||||||
visible: contextVisible || visible,
|
visible: contextVisible || visible,
|
||||||
|
...child.props,
|
||||||
...rest,
|
...rest,
|
||||||
}))
|
}))
|
||||||
)}
|
)}
|
||||||
@@ -85,7 +86,7 @@ export const SongDatagrid = ({ multiDisc, contextVisible, ...rest }) => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
return <Datagrid {...rest} body={<SongDatagridBody />} optimized />
|
return <Datagrid {...rest} body={<SongDatagridBody />} />
|
||||||
}
|
}
|
||||||
|
|
||||||
SongDatagrid.propTypes = {
|
SongDatagrid.propTypes = {
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ const SongList = (props) => {
|
|||||||
<DurationField source="duration" />
|
<DurationField source="duration" />
|
||||||
{isDesktop ? (
|
{isDesktop ? (
|
||||||
<SongContextMenu
|
<SongContextMenu
|
||||||
|
source={'starred'}
|
||||||
label={translate('resources.song.fields.starred')}
|
label={translate('resources.song.fields.starred')}
|
||||||
sortBy={'starred DESC, starredAt ASC'}
|
sortBy={'starred DESC, starredAt ASC'}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user