mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user