mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Improve warning when creating invoice without wallet (#2844)
* Improve warning when creating invoice without wallet close #2834 * Update link class name
This commit is contained in:
@@ -829,7 +829,12 @@ namespace BTCPayServer.Controllers
|
|||||||
|
|
||||||
if (!store.GetSupportedPaymentMethods(_NetworkProvider).Any())
|
if (!store.GetSupportedPaymentMethods(_NetworkProvider).Any())
|
||||||
{
|
{
|
||||||
ModelState.AddModelError(nameof(model.StoreId), "You need to configure the derivation scheme in order to create an invoice");
|
TempData.SetStatusMessageModel(new StatusMessageModel()
|
||||||
|
{
|
||||||
|
Severity = StatusMessageModel.StatusSeverity.Error,
|
||||||
|
Html = $"To create an invoice, you need to <a href='{Url.Action(nameof(StoresController.UpdateStore), "Stores", new { storeId = store.Id })}' class='alert-link'>set up your wallet</a> first",
|
||||||
|
AllowDismiss = false
|
||||||
|
});
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user