Fixed: Improved root folder setup page

(cherry picked from commit eb4f55de85caaf4f5f5959d7eda5af83aa0ad4e3)
This commit is contained in:
PearsonFlyer
2021-07-13 16:05:10 -04:00
committed by ta264
parent 05a0508d78
commit 0b0bebf3aa
3 changed files with 315 additions and 300 deletions

View File

@@ -61,7 +61,7 @@ class AddAuthorOptionsForm extends Component {
<FormGroup>
<FormLabel>
Monitor
{translate('Monitor')}
<Popover
anchor={

View File

@@ -3,6 +3,8 @@ import React from 'react';
import AuthorMetadataProfilePopoverContent from 'AddAuthor/AuthorMetadataProfilePopoverContent';
import AuthorMonitoringOptionsPopoverContent from 'AddAuthor/AuthorMonitoringOptionsPopoverContent';
import AuthorMonitorNewItemsOptionsPopoverContent from 'AddAuthor/AuthorMonitorNewItemsOptionsPopoverContent';
import Alert from 'Components/Alert';
import FieldSet from 'Components/FieldSet';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
@@ -82,6 +84,7 @@ function EditRootFolderModalContent(props) {
{
!isFetching && !error &&
<Form {...otherProps}>
<FieldSet legend={translate('RootFolder')} >
<FormGroup>
<FormLabel>
{translate('Name')}
@@ -110,10 +113,123 @@ function EditRootFolderModalContent(props) {
onChange={onInputChange}
/>
</FormGroup>
</FieldSet>
<FieldSet legend={translate('AddedAuthorSettings')} >
<FormGroup>
<FormLabel>
{translate('Monitor')}
<Popover
anchor={
<Icon
className={styles.labelIcon}
name={icons.INFO}
/>
}
title={translate('MonitoringOptions')}
body={<AuthorMonitoringOptionsPopoverContent />}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
<FormInputGroup
type={inputTypes.MONITOR_BOOKS_SELECT}
name="defaultMonitorOption"
onChange={onInputChange}
{...defaultMonitorOption}
helpText={translate('DefaultMonitorOptionHelpText')}
/>
</FormGroup>
<FormGroup>
<FormLabel>
Use Calibre
{translate('MonitorNewItems')}
<Popover
anchor={
<Icon
className={styles.labelIcon}
name={icons.INFO}
/>
}
title={translate('MonitorNewItems')}
body={<AuthorMonitorNewItemsOptionsPopoverContent />}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
<FormInputGroup
type={inputTypes.MONITOR_NEW_ITEMS_SELECT}
name="defaultNewItemMonitorOption"
{...defaultNewItemMonitorOption}
onChange={onInputChange}
helpText={translate('MonitorNewItemsHelpText')}
/>
</FormGroup>
<FormGroup>
<FormLabel>
{translate('QualityProfile')}
</FormLabel>
<FormInputGroup
type={inputTypes.QUALITY_PROFILE_SELECT}
name="defaultQualityProfileId"
helpText={translate('DefaultQualityProfileIdHelpText')}
{...defaultQualityProfileId}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup className={showMetadataProfile ? undefined : styles.hideMetadataProfile}>
<FormLabel>
{translate('MetadataProfile')}
<Popover
anchor={
<Icon
className={styles.labelIcon}
name={icons.INFO}
/>
}
title={translate('MetadataProfile')}
body={<AuthorMetadataProfilePopoverContent />}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
<FormInputGroup
type={inputTypes.METADATA_PROFILE_SELECT}
name="defaultMetadataProfileId"
helpText={translate('DefaultMetadataProfileIdHelpText')}
{...defaultMetadataProfileId}
includeNone={true}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup>
<FormLabel>
{translate('DefaultReadarrTags')}
</FormLabel>
<FormInputGroup
type={inputTypes.TAG}
name="defaultTags"
helpText={translate('DefaultTagsHelpText')}
{...defaultTags}
onChange={onInputChange}
/>
</FormGroup>
</FieldSet>
<FieldSet legend={translate('CalibreSettings')}>
<Alert>
{translate('CalibreNotCalibreWeb')}
</Alert>
<FormGroup>
<FormLabel>
{translate('UseCalibreContentServer')}
<Popover
anchor={
<Icon
@@ -122,7 +238,7 @@ function EditRootFolderModalContent(props) {
/>
}
title={translate('CalibreContentServer')}
body={'Using a Calibre content server allows Readarr to add books to your Calibre library and trigger conversions between formats'}
body={translate('CalibreContentServerText')}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
@@ -294,112 +410,7 @@ function EditRootFolderModalContent(props) {
</FormGroup>
</div>
}
<FormGroup>
<FormLabel>
{translate('Monitor')}
<Popover
anchor={
<Icon
className={styles.labelIcon}
name={icons.INFO}
/>
}
title={translate('MonitoringOptions')}
body={<AuthorMonitoringOptionsPopoverContent />}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
<FormInputGroup
type={inputTypes.MONITOR_BOOKS_SELECT}
name="defaultMonitorOption"
onChange={onInputChange}
{...defaultMonitorOption}
helpText={translate('DefaultMonitorOptionHelpText')}
/>
</FormGroup>
<FormGroup>
<FormLabel>
{translate('MonitorNewItems')}
<Popover
anchor={
<Icon
className={styles.labelIcon}
name={icons.INFO}
/>
}
title={translate('MonitorNewItems')}
body={<AuthorMonitorNewItemsOptionsPopoverContent />}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
<FormInputGroup
type={inputTypes.MONITOR_NEW_ITEMS_SELECT}
name="defaultNewItemMonitorOption"
{...defaultNewItemMonitorOption}
onChange={onInputChange}
helpText={translate('MonitorNewItemsHelpText')}
/>
</FormGroup>
<FormGroup>
<FormLabel>
{translate('QualityProfile')}
</FormLabel>
<FormInputGroup
type={inputTypes.QUALITY_PROFILE_SELECT}
name="defaultQualityProfileId"
helpText={translate('DefaultQualityProfileIdHelpText')}
{...defaultQualityProfileId}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup className={showMetadataProfile ? undefined : styles.hideMetadataProfile}>
<FormLabel>
Metadata Profile
<Popover
anchor={
<Icon
className={styles.labelIcon}
name={icons.INFO}
/>
}
title={translate('MetadataProfile')}
body={<AuthorMetadataProfilePopoverContent />}
position={tooltipPositions.RIGHT}
/>
</FormLabel>
<FormInputGroup
type={inputTypes.METADATA_PROFILE_SELECT}
name="defaultMetadataProfileId"
helpText={translate('DefaultMetadataProfileIdHelpText')}
{...defaultMetadataProfileId}
includeNone={true}
onChange={onInputChange}
/>
</FormGroup>
<FormGroup>
<FormLabel>
{translate('DefaultReadarrTags')}
</FormLabel>
<FormInputGroup
type={inputTypes.TAG}
name="defaultTags"
helpText={translate('DefaultTagsHelpText')}
{...defaultTags}
onChange={onInputChange}
/>
</FormGroup>
</FieldSet>
</Form>
}

View File

@@ -89,14 +89,17 @@
"BypassProxyForLocalAddresses": "Bypass Proxy for Local Addresses",
"Calendar": "Calendar",
"CalendarWeekColumnHeaderHelpText": "Shown above each column when week is the active view",
"CalibreContentServer": "Calibre content server",
"CalibreContentServer": "Calibre Content Server",
"CalibreContentServerText": "Using a Calibre Content Server (not Calibre Web) allows Readarr to add books to your Calibre library and trigger conversions between formats",
"CalibreHost": "Calibre Host",
"CalibreLibrary": "Calibre Library",
"CalibreMetadata": "Calibre Metadata",
"CalibreNotCalibreWeb": "Readarr can interface with Calibre's Content Server. It cannot use Calibre-Web, which is unrelated software.",
"CalibreOutputFormat": "Calibre output format",
"CalibreOutputProfile": "Calibre output profile",
"CalibrePassword": "Calibre Password",
"CalibrePort": "Calibre Port",
"CalibreSettings": "Calibre Settings",
"CalibreUrlBase": "Calibre Url Base",
"CalibreUsername": "Calibre Username",
"Cancel": "Cancel",
@@ -308,7 +311,7 @@
"IndexerSettings": "Indexer Settings",
"Interval": "Interval",
"ISBN": "ISBN",
"IsCalibreLibraryHelpText": "Use Calibre content server to manipulate library",
"IsCalibreLibraryHelpText": "Use Calibre Content Server to manipulate library",
"IsCutoffCutoff": "Cutoff",
"IsCutoffUpgradeUntilThisQualityIsMetOrExceeded": "Upgrade until this quality is met or exceeded",
"IsExpandedHideBooks": "Hide books",
@@ -738,6 +741,7 @@
"URLBase": "URL Base",
"UrlBaseHelpText": "Adds a prefix to the Calibre url, e.g. http://[host]:[port]/[urlBase]",
"UrlBaseHelpTextWarning": "Requires restart to take effect",
"UseCalibreContentServer": "Use Calibre Content Server",
"UseHardlinksInsteadOfCopy": "Use Hardlinks instead of Copy",
"Usenet": "Usenet",
"UsenetDelay": "Usenet Delay",