Removing rates hint

This commit is contained in:
rockstardev
2020-10-16 15:23:38 -05:00
parent 36269cbed6
commit 543e628a8b
5 changed files with 2 additions and 18 deletions

View File

@@ -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
{

View File

@@ -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()

View File

@@ -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)]

View File

@@ -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);

View File

@@ -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">&times;</span>
</button>
</p>
}
@if (Model.ShowScripting)
{
<div class="form-group">