diff --git a/frontend/src/Components/Form/ProviderFieldFormGroup.js b/frontend/src/Components/Form/ProviderFieldFormGroup.js index b77aba269..6a0896024 100644 --- a/frontend/src/Components/Form/ProviderFieldFormGroup.js +++ b/frontend/src/Components/Form/ProviderFieldFormGroup.js @@ -63,6 +63,7 @@ function ProviderFieldFormGroup(props) { label, helpText, helpLink, + placeholder, value, type, advanced, @@ -95,6 +96,7 @@ function ProviderFieldFormGroup(props) { label={label} helpText={helpText} helpLink={helpLink} + placeholder={placeholder} value={value} values={getSelectValues(selectOptions)} errors={errors} @@ -120,6 +122,7 @@ ProviderFieldFormGroup.propTypes = { label: PropTypes.string.isRequired, helpText: PropTypes.string, helpLink: PropTypes.string, + placeholder: PropTypes.string, value: PropTypes.any, type: PropTypes.string.isRequired, advanced: PropTypes.bool.isRequired, diff --git a/src/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs b/src/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs index 9bbee96c7..0b201ac09 100644 --- a/src/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs +++ b/src/NzbDrone.Core/Annotations/FieldDefinitionAttribute.cs @@ -23,6 +23,7 @@ public FieldDefinitionAttribute(int order) public string Section { get; set; } public HiddenType Hidden { get; set; } public PrivacyLevel Privacy { get; set; } + public string Placeholder { get; set; } } [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] diff --git a/src/Readarr.Http/ClientSchema/Field.cs b/src/Readarr.Http/ClientSchema/Field.cs index 9d5d7ca34..d043e10f6 100644 --- a/src/Readarr.Http/ClientSchema/Field.cs +++ b/src/Readarr.Http/ClientSchema/Field.cs @@ -18,6 +18,7 @@ public class Field public string SelectOptionsProviderAction { get; set; } public string Section { get; set; } public string Hidden { get; set; } + public string Placeholder { get; set; } public Field Clone() { diff --git a/src/Readarr.Http/ClientSchema/SchemaBuilder.cs b/src/Readarr.Http/ClientSchema/SchemaBuilder.cs index 8ad1ff916..a1663a28a 100644 --- a/src/Readarr.Http/ClientSchema/SchemaBuilder.cs +++ b/src/Readarr.Http/ClientSchema/SchemaBuilder.cs @@ -103,7 +103,8 @@ private static FieldMapping[] GetFieldMapping(Type type, string prefix, Func