mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 09:19:24 +01:00
* 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>
24 lines
950 B
C#
24 lines
950 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
{
|
|
public class ListTransactionsViewModel : BasePagingViewModel
|
|
{
|
|
public class TransactionViewModel
|
|
{
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
public bool IsConfirmed { get; set; }
|
|
public string Comment { get; set; }
|
|
public string Id { get; set; }
|
|
public string Link { get; set; }
|
|
public bool Positive { get; set; }
|
|
public string Balance { get; set; }
|
|
public HashSet<TransactionTagModel> Tags { get; set; } = new ();
|
|
}
|
|
public HashSet<(string Text, string Color, string TextColor)> Labels { get; set; } = new ();
|
|
public List<TransactionViewModel> Transactions { get; set; } = new ();
|
|
public override int CurrentPageCount => Transactions.Count;
|
|
public string CryptoCode { get; set; }
|
|
}
|
|
}
|