mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
New: Readarr 0.1
This commit is contained in:
@@ -83,10 +83,10 @@ class CutoffUnmet extends Component {
|
||||
}
|
||||
|
||||
onToggleSelectedPress = () => {
|
||||
const albumIds = this.getSelectedIds();
|
||||
const bookIds = this.getSelectedIds();
|
||||
|
||||
this.props.batchToggleCutoffUnmetAlbums({
|
||||
albumIds,
|
||||
bookIds,
|
||||
monitored: !getMonitoredValue(this.props)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -61,10 +61,10 @@ class CutoffUnmetConnector extends Component {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (hasDifferentItems(prevProps.items, this.props.items)) {
|
||||
const albumIds = selectUniqueIds(this.props.items, 'id');
|
||||
const bookIds = selectUniqueIds(this.props.items, 'id');
|
||||
const trackFileIds = selectUniqueIds(this.props.items, 'trackFileId');
|
||||
|
||||
this.props.fetchQueueDetails({ albumIds });
|
||||
this.props.fetchQueueDetails({ bookIds });
|
||||
|
||||
if (trackFileIds.length) {
|
||||
this.props.fetchTrackFiles({ trackFileIds });
|
||||
@@ -128,7 +128,7 @@ class CutoffUnmetConnector extends Component {
|
||||
onSearchSelectedPress = (selected) => {
|
||||
this.props.executeCommand({
|
||||
name: commandNames.ALBUM_SEARCH,
|
||||
albumIds: selected
|
||||
bookIds: selected
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,7 @@ function CutoffUnmetRow(props) {
|
||||
trackFileId,
|
||||
artist,
|
||||
releaseDate,
|
||||
foreignAlbumId,
|
||||
albumType,
|
||||
titleSlug,
|
||||
title,
|
||||
disambiguation,
|
||||
isSelected,
|
||||
@@ -49,22 +48,22 @@ function CutoffUnmetRow(props) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'authors.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<ArtistNameLink
|
||||
foreignArtistId={artist.foreignArtistId}
|
||||
titleSlug={artist.titleSlug}
|
||||
artistName={artist.artistName}
|
||||
/>
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'albumTitle') {
|
||||
if (name === 'books.title') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<AlbumTitleLink
|
||||
foreignAlbumId={foreignAlbumId}
|
||||
titleSlug={titleSlug}
|
||||
title={title}
|
||||
disambiguation={disambiguation}
|
||||
/>
|
||||
@@ -72,14 +71,6 @@ function CutoffUnmetRow(props) {
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'albumType') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
{albumType}
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'releaseDate') {
|
||||
return (
|
||||
<RelativeDateCellConnector
|
||||
@@ -96,7 +87,7 @@ function CutoffUnmetRow(props) {
|
||||
className={styles.status}
|
||||
>
|
||||
<EpisodeStatusConnector
|
||||
albumId={id}
|
||||
bookId={id}
|
||||
trackFileId={trackFileId}
|
||||
albumEntity={albumEntities.WANTED_CUTOFF_UNMET}
|
||||
/>
|
||||
@@ -108,8 +99,8 @@ function CutoffUnmetRow(props) {
|
||||
return (
|
||||
<AlbumSearchCellConnector
|
||||
key={name}
|
||||
albumId={id}
|
||||
artistId={artist.id}
|
||||
bookId={id}
|
||||
authorId={artist.id}
|
||||
albumTitle={title}
|
||||
albumEntity={albumEntities.WANTED_CUTOFF_UNMET}
|
||||
showOpenArtistButton={true}
|
||||
@@ -129,8 +120,7 @@ CutoffUnmetRow.propTypes = {
|
||||
trackFileId: PropTypes.number,
|
||||
artist: PropTypes.object.isRequired,
|
||||
releaseDate: PropTypes.string.isRequired,
|
||||
foreignAlbumId: PropTypes.string.isRequired,
|
||||
albumType: PropTypes.string.isRequired,
|
||||
titleSlug: PropTypes.string.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
disambiguation: PropTypes.string,
|
||||
isSelected: PropTypes.bool,
|
||||
|
||||
@@ -84,10 +84,10 @@ class Missing extends Component {
|
||||
}
|
||||
|
||||
onToggleSelectedPress = () => {
|
||||
const albumIds = this.getSelectedIds();
|
||||
const bookIds = this.getSelectedIds();
|
||||
|
||||
this.props.batchToggleMissingAlbums({
|
||||
albumIds,
|
||||
bookIds,
|
||||
monitored: !getMonitoredValue(this.props)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ class MissingConnector extends Component {
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (hasDifferentItems(prevProps.items, this.props.items)) {
|
||||
const albumIds = selectUniqueIds(this.props.items, 'id');
|
||||
this.props.fetchQueueDetails({ albumIds });
|
||||
const bookIds = selectUniqueIds(this.props.items, 'id');
|
||||
this.props.fetchQueueDetails({ bookIds });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ class MissingConnector extends Component {
|
||||
onSearchSelectedPress = (selected) => {
|
||||
this.props.executeCommand({
|
||||
name: commandNames.ALBUM_SEARCH,
|
||||
albumIds: selected
|
||||
bookIds: selected
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@ function MissingRow(props) {
|
||||
id,
|
||||
artist,
|
||||
releaseDate,
|
||||
albumType,
|
||||
foreignAlbumId,
|
||||
titleSlug,
|
||||
title,
|
||||
disambiguation,
|
||||
isSelected,
|
||||
@@ -46,22 +45,22 @@ function MissingRow(props) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (name === 'artist.sortName') {
|
||||
if (name === 'authors.sortName') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<ArtistNameLink
|
||||
foreignArtistId={artist.foreignArtistId}
|
||||
titleSlug={artist.titleSlug}
|
||||
artistName={artist.artistName}
|
||||
/>
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'albumTitle') {
|
||||
if (name === 'books.title') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
<AlbumTitleLink
|
||||
foreignAlbumId={foreignAlbumId}
|
||||
titleSlug={titleSlug}
|
||||
title={title}
|
||||
disambiguation={disambiguation}
|
||||
/>
|
||||
@@ -69,14 +68,6 @@ function MissingRow(props) {
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'albumType') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
{albumType}
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'releaseDate') {
|
||||
return (
|
||||
<RelativeDateCellConnector
|
||||
@@ -90,8 +81,8 @@ function MissingRow(props) {
|
||||
return (
|
||||
<AlbumSearchCellConnector
|
||||
key={name}
|
||||
albumId={id}
|
||||
artistId={artist.id}
|
||||
bookId={id}
|
||||
authorId={artist.id}
|
||||
albumTitle={title}
|
||||
albumEntity={albumEntities.WANTED_MISSING}
|
||||
showOpenArtistButton={true}
|
||||
@@ -110,8 +101,7 @@ MissingRow.propTypes = {
|
||||
id: PropTypes.number.isRequired,
|
||||
artist: PropTypes.object.isRequired,
|
||||
releaseDate: PropTypes.string.isRequired,
|
||||
foreignAlbumId: PropTypes.string.isRequired,
|
||||
albumType: PropTypes.string.isRequired,
|
||||
titleSlug: PropTypes.string.isRequired,
|
||||
title: PropTypes.string.isRequired,
|
||||
disambiguation: PropTypes.string,
|
||||
isSelected: PropTypes.bool,
|
||||
|
||||
Reference in New Issue
Block a user