Added toggle button to switch to store default currency (#3752)

* Added toggle button to switch to store default currency

* Replaced ["usd"] with the currency variable

* Fix indentation and improve JS part

* Update script and display

* Improve chart display

* Improve rate display

* Address code review comments

Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
Saksham Solanki
2022-06-15 13:03:24 +05:30
committed by GitHub
parent 0da97c5da3
commit 346821f0d6
3 changed files with 128 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections.Generic;
using BTCPayServer.Data;
using BTCPayServer.Services.Rates;
using BTCPayServer.Services.Wallets;
namespace BTCPayServer.Components.StoreWalletBalance;
@@ -8,6 +9,8 @@ public class StoreWalletBalanceViewModel
{
public decimal? Balance { get; set; }
public string CryptoCode { get; set; }
public string DefaultCurrency { get; set; }
public CurrencyData CurrencyData { get; set; }
public StoreData Store { get; set; }
public WalletId WalletId { get; set; }
public WalletHistogramType Type { get; set; }