mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 07:34:26 +01:00
Refactor: Remove cshtml duplication for back/url buttons in wizards
This commit is contained in:
@@ -4,7 +4,7 @@ using NBitcoin;
|
||||
|
||||
namespace BTCPayServer.Models.WalletViewModels
|
||||
{
|
||||
public class SignWithSeedViewModel
|
||||
public class SignWithSeedViewModel : IHasBackAndReturnUrl
|
||||
{
|
||||
public SigningContextModel SigningContext { get; set; } = new SigningContextModel();
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ using NBitcoin;
|
||||
|
||||
namespace BTCPayServer.Models.WalletViewModels
|
||||
{
|
||||
public class WalletPSBTCombineViewModel
|
||||
public class WalletPSBTCombineViewModel : IHasBackAndReturnUrl
|
||||
{
|
||||
public string OtherPSBT { get; set; }
|
||||
[Display(Name = "PSBT to combine with…")]
|
||||
|
||||
@@ -5,7 +5,7 @@ using NBitcoin;
|
||||
|
||||
namespace BTCPayServer.Models.WalletViewModels
|
||||
{
|
||||
public class WalletPSBTReadyViewModel
|
||||
public class WalletPSBTReadyViewModel : IHasBackAndReturnUrl
|
||||
{
|
||||
public SigningContextModel SigningContext { get; set; } = new SigningContextModel();
|
||||
public string SigningKey { get; set; }
|
||||
@@ -27,6 +27,12 @@ namespace BTCPayServer.Models.WalletViewModels
|
||||
public string BalanceChange { get; set; }
|
||||
public IEnumerable<TransactionTagModel> Labels { get; set; } = new List<TransactionTagModel>();
|
||||
}
|
||||
public class AmountViewModel
|
||||
{
|
||||
public bool Positive { get; set; }
|
||||
public string BalanceChange { get; set; }
|
||||
}
|
||||
public AmountViewModel ReplacementBalanceChange { get; set; }
|
||||
public bool HasErrors => Inputs.Count == 0 || Inputs.Any(i => !string.IsNullOrEmpty(i.Error));
|
||||
public string BalanceChange { get; set; }
|
||||
public bool CanCalculateBalance { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ using BTCPayServer.Services.Labels;
|
||||
|
||||
namespace BTCPayServer.Models.WalletViewModels
|
||||
{
|
||||
public class WalletSendModel
|
||||
public class WalletSendModel : IHasBackAndReturnUrl
|
||||
{
|
||||
public enum ThreeStateBool
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace BTCPayServer.Models.WalletViewModels
|
||||
{
|
||||
public class WalletSendVaultModel
|
||||
public class WalletSendVaultModel : IHasBackAndReturnUrl
|
||||
{
|
||||
public string WalletId { get; set; }
|
||||
public string WebsocketPath { get; set; }
|
||||
|
||||
@@ -2,7 +2,7 @@ using System;
|
||||
|
||||
namespace BTCPayServer.Models.WalletViewModels
|
||||
{
|
||||
public class WalletSigningOptionsModel
|
||||
public class WalletSigningOptionsModel : IHasBackAndReturnUrl
|
||||
{
|
||||
public SigningContextModel SigningContext { get; set; }
|
||||
public string BackUrl { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user