mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
New: Readarr 0.1
This commit is contained in:
@@ -12,9 +12,6 @@ import Form from 'Components/Form/Form';
|
||||
import FormGroup from 'Components/Form/FormGroup';
|
||||
import FormLabel from 'Components/Form/FormLabel';
|
||||
import FormInputGroup from 'Components/Form/FormInputGroup';
|
||||
import PrimaryTypeItems from './PrimaryTypeItems';
|
||||
import SecondaryTypeItems from './SecondaryTypeItems';
|
||||
import ReleaseStatusItems from './ReleaseStatusItems';
|
||||
import styles from './EditMetadataProfileModalContent.css';
|
||||
|
||||
function EditMetadataProfileModalContent(props) {
|
||||
@@ -23,8 +20,6 @@ function EditMetadataProfileModalContent(props) {
|
||||
error,
|
||||
isSaving,
|
||||
saveError,
|
||||
primaryAlbumTypes,
|
||||
secondaryAlbumTypes,
|
||||
item,
|
||||
isInUse,
|
||||
onInputChange,
|
||||
@@ -37,9 +32,13 @@ function EditMetadataProfileModalContent(props) {
|
||||
const {
|
||||
id,
|
||||
name,
|
||||
primaryAlbumTypes: itemPrimaryAlbumTypes,
|
||||
secondaryAlbumTypes: itemSecondaryAlbumTypes,
|
||||
releaseStatuses: itemReleaseStatuses
|
||||
minRating,
|
||||
minRatingCount,
|
||||
skipMissingDate,
|
||||
skipMissingIsbn,
|
||||
skipPartsAndSets,
|
||||
skipSeriesSecondary,
|
||||
allowedLanguages
|
||||
} = item;
|
||||
|
||||
return (
|
||||
@@ -73,29 +72,86 @@ function EditMetadataProfileModalContent(props) {
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<PrimaryTypeItems
|
||||
metadataProfileItems={itemPrimaryAlbumTypes.value}
|
||||
errors={itemPrimaryAlbumTypes.errors}
|
||||
warnings={itemPrimaryAlbumTypes.warnings}
|
||||
formLabel="Primary Album Types"
|
||||
{...otherProps}
|
||||
/>
|
||||
<FormGroup>
|
||||
<FormLabel>Minimum Rating</FormLabel>
|
||||
|
||||
<SecondaryTypeItems
|
||||
metadataProfileItems={itemSecondaryAlbumTypes.value}
|
||||
errors={itemSecondaryAlbumTypes.errors}
|
||||
warnings={itemSecondaryAlbumTypes.warnings}
|
||||
formLabel="Secondary Album Types"
|
||||
{...otherProps}
|
||||
/>
|
||||
<FormInputGroup
|
||||
type={inputTypes.NUMBER}
|
||||
name="minRating"
|
||||
{...minRating}
|
||||
isFloat={true}
|
||||
min={0}
|
||||
max={5}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<ReleaseStatusItems
|
||||
metadataProfileItems={itemReleaseStatuses.value}
|
||||
errors={itemReleaseStatuses.errors}
|
||||
warnings={itemReleaseStatuses.warnings}
|
||||
formLabel="Release Statuses"
|
||||
{...otherProps}
|
||||
/>
|
||||
<FormGroup>
|
||||
<FormLabel>Minimum Number of Ratings</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.NUMBER}
|
||||
name="minRatingCount"
|
||||
{...minRatingCount}
|
||||
min={0}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Skip books with missing release date</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="skipMissingDate"
|
||||
{...skipMissingDate}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Skip books with no ISBN or ASIN</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="skipMissingIsbn"
|
||||
{...skipMissingIsbn}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Skip part books and sets</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="skipPartsAndSets"
|
||||
{...skipPartsAndSets}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Skip secondary series books</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.CHECK}
|
||||
name="skipSeriesSecondary"
|
||||
{...skipSeriesSecondary}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
<FormGroup>
|
||||
<FormLabel>Allowed Languages</FormLabel>
|
||||
|
||||
<FormInputGroup
|
||||
type={inputTypes.TEXT}
|
||||
name="allowedLanguages"
|
||||
{...allowedLanguages}
|
||||
onChange={onInputChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
|
||||
</Form>
|
||||
}
|
||||
@@ -140,9 +196,6 @@ EditMetadataProfileModalContent.propTypes = {
|
||||
error: PropTypes.object,
|
||||
isSaving: PropTypes.bool.isRequired,
|
||||
saveError: PropTypes.object,
|
||||
primaryAlbumTypes: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
secondaryAlbumTypes: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
releaseStatuses: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
item: PropTypes.object.isRequired,
|
||||
isInUse: PropTypes.bool.isRequired,
|
||||
onInputChange: PropTypes.func.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user