From d88f012d824b2e7a9439a104c7745f2cd8fadec5 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sun, 12 Sep 2021 22:24:10 -0700 Subject: [PATCH] Improve warning when creating invoice without wallet (#2844) * Improve warning when creating invoice without wallet close #2834 * Update link class name --- BTCPayServer/Controllers/InvoiceController.UI.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Controllers/InvoiceController.UI.cs b/BTCPayServer/Controllers/InvoiceController.UI.cs index e4158148c..6ab5d8e4f 100644 --- a/BTCPayServer/Controllers/InvoiceController.UI.cs +++ b/BTCPayServer/Controllers/InvoiceController.UI.cs @@ -829,7 +829,12 @@ namespace BTCPayServer.Controllers 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 set up your wallet first", + AllowDismiss = false + }); return View(model); }