Skip to content

Commit

Permalink
Rename property
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed May 26, 2020
1 parent 2c68ba3 commit 7170485
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ui/src/album/AlbumSongs.js
Expand Up @@ -131,7 +131,7 @@ const AlbumSongs = (props) => {
{...controllerProps}
hasBulkActions={hasBulkActions}
multiDisc={multiDisc}
contextVisible={isXsmall}
contextAlwaysVisible={isXsmall}
>
{isDesktop && (
<TextField
Expand Down
13 changes: 7 additions & 6 deletions ui/src/common/SongDatagrid.js
Expand Up @@ -22,7 +22,8 @@ export const SongDatagridRow = ({
record,
children,
multiDisc,
contextVisible,
contextAlwaysVisible,
contextMenu,
...rest
}) => {
const classes = useStyles()
Expand Down Expand Up @@ -57,7 +58,7 @@ export const SongDatagridRow = ({
(index < childCount - 1
? child
: cloneElement(child, {
visible: contextVisible || visible,
visible: contextAlwaysVisible || visible,
...rest,
}))
)}
Expand All @@ -70,17 +71,17 @@ SongDatagridRow.propTypes = {
record: PropTypes.object,
children: PropTypes.node,
multiDisc: PropTypes.bool,
contextVisible: PropTypes.bool,
contextAlwaysVisible: PropTypes.bool,
}

export const SongDatagrid = ({ multiDisc, contextVisible, ...rest }) => {
export const SongDatagrid = ({ multiDisc, contextAlwaysVisible, ...rest }) => {
const SongDatagridBody = (props) => (
<DatagridBody
{...props}
row={
<SongDatagridRow
multiDisc={multiDisc}
contextVisible={contextVisible}
contextAlwaysVisible={contextAlwaysVisible}
/>
}
/>
Expand All @@ -89,6 +90,6 @@ export const SongDatagrid = ({ multiDisc, contextVisible, ...rest }) => {
}

SongDatagrid.propTypes = {
contextVisible: PropTypes.bool,
contextAlwaysVisible: PropTypes.bool,
multiDisc: PropTypes.bool,
}
2 changes: 1 addition & 1 deletion ui/src/playlist/PlaylistSongs.js
Expand Up @@ -115,7 +115,7 @@ const PlaylistSongs = (props) => {
rowClick={null}
{...controllerProps}
hasBulkActions={hasBulkActions}
contextVisible={isXsmall}
contextAlwaysVisible={isXsmall}
>
{isDesktop && <TextField source="id" label={'#'} />}
<TextField source="title" />
Expand Down

0 comments on commit 7170485

Please sign in to comment.