Small enhancement on Rates page

This commit is contained in:
nicolas.dorier 2018-05-04 11:48:03 +09:00
parent 8f1324fdf3
commit 74ccc34c9c
3 changed files with 4 additions and 2 deletions

View File

@ -251,6 +251,8 @@ namespace BTCPayServer.Controllers
else
{
blob.RateScript = rules.ToString();
ModelState.Remove(nameof(model.Script));
model.Script = blob.RateScript;
}
}
rules = blob.GetRateRules(_NetworkProvider);

View File

@ -44,7 +44,7 @@ namespace BTCPayServer.Models.StoreViewModels
public string ScriptTest { get; set; }
public CoinAverageExchange[] AvailableExchanges { get; set; }
[Display(Name = "Multiply the original rate by ...")]
[Display(Name = "Multiply the rate by ...")]
[Range(0.01, 10.0)]
public double RateMultiplier
{

View File

@ -48,7 +48,7 @@
{
<th class="small"><span class="fa fa-check" style="color:green;"></span> @result.CurrencyPair</th>
}
<td>@result.Rule</td>
<td class="small">@result.Rule</td>
</tr>
}
</tbody>