btcpayserver/BTCPayServer/Forms/HtmlFieldsetFormProvider.cs
Andrew Camilleri 99a0b70cfa
Fix form value setter (#5387)
* Fix form value setter

* Fix test parallelization

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2023-10-13 10:08:16 +09:00

30 lines
641 B
C#

using System.Collections.Generic;
using BTCPayServer.Abstractions.Form;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Forms;
public class HtmlFieldsetFormProvider : IFormComponentProvider
{
public string View => "Forms/FieldSetElement";
public void Register(Dictionary<string, IFormComponentProvider> typeToComponentProvider)
{
typeToComponentProvider.Add("fieldset", this);
}
public string GetValue(Form form, Field field)
{
return null;
}
public void SetValue(Field field, JToken value)
{
//ignored
}
public void Validate(Form form, Field field)
{
}
}