mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-01 06:18:16 +00:00
Frontend Placeholders from the Backend
(cherry picked from commit 69f5963f6f1e80e3f598bdb13792b7413fcc13b1)
This commit is contained in:
@@ -63,6 +63,7 @@ function ProviderFieldFormGroup(props) {
|
|||||||
label,
|
label,
|
||||||
helpText,
|
helpText,
|
||||||
helpLink,
|
helpLink,
|
||||||
|
placeholder,
|
||||||
value,
|
value,
|
||||||
type,
|
type,
|
||||||
advanced,
|
advanced,
|
||||||
@@ -95,6 +96,7 @@ function ProviderFieldFormGroup(props) {
|
|||||||
label={label}
|
label={label}
|
||||||
helpText={helpText}
|
helpText={helpText}
|
||||||
helpLink={helpLink}
|
helpLink={helpLink}
|
||||||
|
placeholder={placeholder}
|
||||||
value={value}
|
value={value}
|
||||||
values={getSelectValues(selectOptions)}
|
values={getSelectValues(selectOptions)}
|
||||||
errors={errors}
|
errors={errors}
|
||||||
@@ -120,6 +122,7 @@ ProviderFieldFormGroup.propTypes = {
|
|||||||
label: PropTypes.string.isRequired,
|
label: PropTypes.string.isRequired,
|
||||||
helpText: PropTypes.string,
|
helpText: PropTypes.string,
|
||||||
helpLink: PropTypes.string,
|
helpLink: PropTypes.string,
|
||||||
|
placeholder: PropTypes.string,
|
||||||
value: PropTypes.any,
|
value: PropTypes.any,
|
||||||
type: PropTypes.string.isRequired,
|
type: PropTypes.string.isRequired,
|
||||||
advanced: PropTypes.bool.isRequired,
|
advanced: PropTypes.bool.isRequired,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ namespace NzbDrone.Core.Annotations
|
|||||||
public string Section { get; set; }
|
public string Section { get; set; }
|
||||||
public HiddenType Hidden { get; set; }
|
public HiddenType Hidden { get; set; }
|
||||||
public PrivacyLevel Privacy { get; set; }
|
public PrivacyLevel Privacy { get; set; }
|
||||||
|
public string Placeholder { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
|
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ namespace Readarr.Http.ClientSchema
|
|||||||
public string SelectOptionsProviderAction { get; set; }
|
public string SelectOptionsProviderAction { get; set; }
|
||||||
public string Section { get; set; }
|
public string Section { get; set; }
|
||||||
public string Hidden { get; set; }
|
public string Hidden { get; set; }
|
||||||
|
public string Placeholder { get; set; }
|
||||||
|
|
||||||
public Field Clone()
|
public Field Clone()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -103,7 +103,8 @@ namespace Readarr.Http.ClientSchema
|
|||||||
Order = fieldAttribute.Order,
|
Order = fieldAttribute.Order,
|
||||||
Advanced = fieldAttribute.Advanced,
|
Advanced = fieldAttribute.Advanced,
|
||||||
Type = fieldAttribute.Type.ToString().FirstCharToLower(),
|
Type = fieldAttribute.Type.ToString().FirstCharToLower(),
|
||||||
Section = fieldAttribute.Section
|
Section = fieldAttribute.Section,
|
||||||
|
Placeholder = fieldAttribute.Placeholder
|
||||||
};
|
};
|
||||||
|
|
||||||
if (fieldAttribute.Type == FieldType.Select)
|
if (fieldAttribute.Type == FieldType.Select)
|
||||||
|
|||||||
Reference in New Issue
Block a user