mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Removing rates hint
This commit is contained in:
@@ -210,7 +210,6 @@ namespace BTCPayServer.Controllers
|
||||
vm.AvailableExchanges = exchanges;
|
||||
vm.DefaultCurrencyPairs = storeBlob.GetDefaultCurrencyPairString();
|
||||
vm.ShowScripting = storeBlob.RateScripting;
|
||||
vm.HintRates = storeBlob.Hints?.Rates == true;
|
||||
return View(vm);
|
||||
}
|
||||
|
||||
@@ -256,7 +255,6 @@ namespace BTCPayServer.Controllers
|
||||
blob.PreferredExchange = model.PreferredExchange;
|
||||
blob.Spread = (decimal)model.Spread / 100.0m;
|
||||
blob.DefaultCurrencyPairs = currencyPairs;
|
||||
blob.Hints.Rates = false;
|
||||
if (!model.ShowScripting)
|
||||
{
|
||||
if (!exchanges.Any(provider => provider.Id.Equals(model.PreferredExchange, StringComparison.InvariantCultureIgnoreCase)))
|
||||
@@ -988,7 +986,7 @@ namespace BTCPayServer.Controllers
|
||||
public async Task<IActionResult> DismissHint(string id)
|
||||
{
|
||||
var blob = CurrentStore.GetStoreBlob();
|
||||
if (id == "Rates" || id == "Wallet" || id == "Lightning")
|
||||
if (id == "Wallet" || id == "Lightning")
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -193,7 +193,6 @@ namespace BTCPayServer.Data
|
||||
{
|
||||
public bool Wallet { get; set; }
|
||||
public bool Lightning { get; set; }
|
||||
public bool Rates { get; set; }
|
||||
}
|
||||
|
||||
public IPaymentFilter GetExcludedPaymentMethods()
|
||||
|
||||
@@ -53,7 +53,6 @@ namespace BTCPayServer.Models.StoreViewModels
|
||||
public string DefaultCurrencyPairs { get; set; }
|
||||
public string StoreId { get; set; }
|
||||
public IEnumerable<AvailableRateProvider> AvailableExchanges { get; set; }
|
||||
public bool HintRates { get; set; }
|
||||
|
||||
[Display(Name = "Add a spread on exchange rate of ... %")]
|
||||
[Range(0.0, 100.0)]
|
||||
|
||||
@@ -186,8 +186,7 @@ namespace BTCPayServer.Services.Stores
|
||||
blob.Hints = new Data.StoreBlob.StoreHints
|
||||
{
|
||||
Wallet = true,
|
||||
Lightning = true,
|
||||
Rates = true
|
||||
Lightning = true
|
||||
};
|
||||
store.SetStoreBlob(blob);
|
||||
await CreateStore(ownerId, store);
|
||||
|
||||
@@ -18,17 +18,6 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<form method="post">
|
||||
@if (Model.HintRates)
|
||||
{
|
||||
<p class="alert alert-warning">
|
||||
<span class="fa fa-warning"></span>
|
||||
Please verify all Rates settings and test exchange rate currency pairs
|
||||
<button type="button" class="close only-for-js" data-dismiss="alert" aria-label="Close"
|
||||
onclick="return dismissHint('Rates', '@Model.StoreId');">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</p>
|
||||
}
|
||||
@if (Model.ShowScripting)
|
||||
{
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user