Improve Lightning setup page (#2348)

* Redesign Lightning setup page

* Improve Lightning setup page

Closes #1811.

* Test fix

* Fix LightningNetworkPaymentMethodAPITests

* Bootstrap customization fix
This commit is contained in:
d11n
2021-03-31 13:23:36 +02:00
committed by GitHub
parent d24964e900
commit 76985838c4
7 changed files with 164 additions and 160 deletions

View File

@@ -2,27 +2,22 @@ using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Models.StoreViewModels
{
public enum LightningNodeType
{
None,
Internal,
Custom
}
public class LightningNodeViewModel
{
public LightningNodeType LightningNodeType { get; set; }
[Display(Name = "Connection string")]
public string ConnectionString
{
get;
set;
}
public string CryptoCode
{
get;
set;
}
public string ConnectionString { get; set; }
public string CryptoCode { get; set; }
public bool CanUseInternalNode { get; set; }
public bool SkipPortTest { get; set; }
[Display(Name="Lightning enabled")]
public bool Enabled { get; set; } = true;
public string StoreId { get; set; }
}
}