mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed: Pass AdvancedSettings to Metadata Fields
This commit is contained in:
parent
55e6605ed8
commit
8ddaf348f1
@ -15,6 +15,7 @@ import { inputTypes } from 'Helpers/Props';
|
|||||||
|
|
||||||
function EditMetadataModalContent(props) {
|
function EditMetadataModalContent(props) {
|
||||||
const {
|
const {
|
||||||
|
advancedSettings,
|
||||||
isSaving,
|
isSaving,
|
||||||
saveError,
|
saveError,
|
||||||
item,
|
item,
|
||||||
@ -56,6 +57,7 @@ function EditMetadataModalContent(props) {
|
|||||||
return (
|
return (
|
||||||
<ProviderFieldFormGroup
|
<ProviderFieldFormGroup
|
||||||
key={field.name}
|
key={field.name}
|
||||||
|
advancedSettings={advancedSettings}
|
||||||
provider="metadata"
|
provider="metadata"
|
||||||
{...field}
|
{...field}
|
||||||
isDisabled={!enable.value}
|
isDisabled={!enable.value}
|
||||||
@ -88,6 +90,7 @@ function EditMetadataModalContent(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EditMetadataModalContent.propTypes = {
|
EditMetadataModalContent.propTypes = {
|
||||||
|
advancedSettings: PropTypes.bool.isRequired,
|
||||||
isSaving: PropTypes.bool.isRequired,
|
isSaving: PropTypes.bool.isRequired,
|
||||||
saveError: PropTypes.object,
|
saveError: PropTypes.object,
|
||||||
item: PropTypes.object.isRequired,
|
item: PropTypes.object.isRequired,
|
||||||
|
@ -9,9 +9,10 @@ import EditMetadataModalContent from './EditMetadataModalContent';
|
|||||||
|
|
||||||
function createMapStateToProps() {
|
function createMapStateToProps() {
|
||||||
return createSelector(
|
return createSelector(
|
||||||
|
(state) => state.settings.advancedSettings,
|
||||||
(state, { id }) => id,
|
(state, { id }) => id,
|
||||||
(state) => state.settings.metadata,
|
(state) => state.settings.metadata,
|
||||||
(id, metadata) => {
|
(advancedSettings, id, metadata) => {
|
||||||
const {
|
const {
|
||||||
isSaving,
|
isSaving,
|
||||||
saveError,
|
saveError,
|
||||||
@ -22,6 +23,7 @@ function createMapStateToProps() {
|
|||||||
const settings = selectSettings(_.find(items, { id }), pendingChanges, saveError);
|
const settings = selectSettings(_.find(items, { id }), pendingChanges, saveError);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
advancedSettings,
|
||||||
id,
|
id,
|
||||||
isSaving,
|
isSaving,
|
||||||
saveError,
|
saveError,
|
||||||
|
@ -19,7 +19,7 @@ public class XbmcMetadataSettings : IProviderConfig
|
|||||||
public XbmcMetadataSettings()
|
public XbmcMetadataSettings()
|
||||||
{
|
{
|
||||||
MovieMetadata = true;
|
MovieMetadata = true;
|
||||||
MovieMetadataURL = true;
|
MovieMetadataURL = false;
|
||||||
MovieImages = true;
|
MovieImages = true;
|
||||||
UseMovieNfo = false;
|
UseMovieNfo = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user