1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 00:09:37 +02:00

New: Change Add Movie Monitor Selection from Dropdown to Checkbox (#5319)

* New: Change Add Movie Monitor Selection from Dropdown to Checkbox

* Fix Monitored Value not storing (bool changes)

* address discord comments
This commit is contained in:
bakerboy448 2020-11-14 00:18:41 -06:00 committed by GitHub
parent 3e795d290b
commit 897bfa04a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 9 deletions

View File

@ -96,7 +96,9 @@ class AddNewMovieModalContent extends Component {
<Form>
<FormGroup>
<FormLabel>{translate('RootFolder')}</FormLabel>
<FormLabel>
{translate('RootFolder')}
</FormLabel>
<FormInputGroup
type={inputTypes.ROOT_FOLDER_SELECT}
@ -117,19 +119,22 @@ class AddNewMovieModalContent extends Component {
<FormGroup>
<FormLabel>
{translate('Monitor')}
{translate('Monitored')}
</FormLabel>
<FormInputGroup
type={inputTypes.MOVIE_MONITORED_SELECT}
type={inputTypes.CHECK}
name="monitor"
helpText={translate('MonitoredHelpText')}
onChange={onInputChange}
{...monitor}
/>
</FormGroup>
<FormGroup>
<FormLabel>{translate('MinimumAvailability')}</FormLabel>
<FormLabel>
{translate('MinimumAvailability')}
</FormLabel>
<FormInputGroup
type={inputTypes.AVAILABILITY_SELECT}
@ -140,7 +145,9 @@ class AddNewMovieModalContent extends Component {
</FormGroup>
<FormGroup>
<FormLabel>{translate('QualityProfile')}</FormLabel>
<FormLabel>
{translate('QualityProfile')}
</FormLabel>
<FormInputGroup
type={inputTypes.QUALITY_PROFILE_SELECT}
@ -151,7 +158,9 @@ class AddNewMovieModalContent extends Component {
</FormGroup>
<FormGroup>
<FormLabel>{translate('Tags')}</FormLabel>
<FormLabel>
{translate('Tags')}
</FormLabel>
<FormInputGroup
type={inputTypes.TAG}

View File

@ -30,7 +30,7 @@ export const defaultState = {
defaults: {
rootFolderPath: '',
monitor: 'true',
monitor: true,
qualityProfileId: 0,
minimumAvailability: 'announced',
tags: []

View File

@ -14,7 +14,7 @@ function getNewMovie(movie, payload) {
};
movie.addOptions = addOptions;
movie.monitored = monitor === 'true';
movie.monitored = monitor;
movie.qualityProfileId = qualityProfileId;
movie.minimumAvailability = minimumAvailability;
movie.rootFolderPath = rootFolderPath;

View File

@ -416,7 +416,6 @@
"MissingMonitoredAndConsideredAvailable": "Missing, Monitored and considered Available",
"MissingNotMonitored": "Missing, not Monitored",
"Mode": "Mode",
"Monitor": "Monitor",
"Monitored": "Monitored",
"MonitoredHelpText": "Download movie if available",
"MonitoredOnly": "Monitored Only",