mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-23 00:44:24 +01:00
Wallet transactions: Add label manager (#4796)
* Wallet transactions: Add label manager * Update BTCPayServer/Views/UIWallets/WalletTransactions.cshtml Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Add rich label info * Fixes * support labels in wallet send * add labels to tx info page * Remove noscript parts * Allow click on transaction label info * update psbt info labelstyling * revert red pixel fix as it broke all --------- Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
This commit is contained in:
@@ -16,6 +16,7 @@ namespace BTCPayServer.Models.WalletViewModels
|
||||
public bool Positive { get; set; }
|
||||
public string Destination { get; set; }
|
||||
public string Balance { get; set; }
|
||||
public Dictionary<string, string> Labels { get; set; } = new();
|
||||
}
|
||||
|
||||
public class InputViewModel
|
||||
@@ -24,6 +25,7 @@ namespace BTCPayServer.Models.WalletViewModels
|
||||
public string Error { get; set; }
|
||||
public bool Positive { get; set; }
|
||||
public string BalanceChange { get; set; }
|
||||
public Dictionary<string, string> Labels { get; set; } = new();
|
||||
}
|
||||
public bool HasErrors => Inputs.Count == 0 || Inputs.Any(i => !string.IsNullOrEmpty(i.Error));
|
||||
public string BalanceChange { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user