Frontend Placeholders from the Backend

(cherry picked from commit 69f5963f6f1e80e3f598bdb13792b7413fcc13b1)
This commit is contained in:
Robin Dadswell
2021-11-14 21:49:21 +00:00
committed by Qstick
parent fc6a02c2e2
commit f9d5fa37a3
4 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ namespace Readarr.Http.ClientSchema
public string SelectOptionsProviderAction { get; set; }
public string Section { get; set; }
public string Hidden { get; set; }
public string Placeholder { get; set; }
public Field Clone()
{

View File

@@ -103,7 +103,8 @@ namespace Readarr.Http.ClientSchema
Order = fieldAttribute.Order,
Advanced = fieldAttribute.Advanced,
Type = fieldAttribute.Type.ToString().FirstCharToLower(),
Section = fieldAttribute.Section
Section = fieldAttribute.Section,
Placeholder = fieldAttribute.Placeholder
};
if (fieldAttribute.Type == FieldType.Select)