From acbc75d0778fc08f4fc633488aadeb2c70f2b793 Mon Sep 17 00:00:00 2001 From: napoly Date: Fri, 19 Jul 2024 14:46:24 +0200 Subject: [PATCH] Fix xmr status message (#6111) --- .../Altcoins/Monero/UI/MoneroLikeStoreController.cs | 10 +++++----- .../GetStoreMoneroLikePaymentMethod.cshtml | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/BTCPayServer/Services/Altcoins/Monero/UI/MoneroLikeStoreController.cs b/BTCPayServer/Services/Altcoins/Monero/UI/MoneroLikeStoreController.cs index 2d450c388..decdfa6c1 100644 --- a/BTCPayServer/Services/Altcoins/Monero/UI/MoneroLikeStoreController.cs +++ b/BTCPayServer/Services/Altcoins/Monero/UI/MoneroLikeStoreController.cs @@ -270,13 +270,13 @@ namespace BTCPayServer.Services.Altcoins.Monero.UI ModelState.AddModelError(nameof(viewModel.AccountIndex), $"Could not open the wallet: {ex.Message}"); return View(viewModel); } - - return RedirectToAction(nameof(GetStoreMoneroLikePaymentMethod), new + + TempData.SetStatusMessageModel(new StatusMessageModel() { - cryptoCode, - StatusMessage = "View-only wallet files uploaded. The wallet will soon become available." - + Severity = StatusMessageModel.StatusSeverity.Info, + Message = $"View-only wallet files uploaded. The wallet will soon become available." }); + return RedirectToAction(nameof(GetStoreMoneroLikePaymentMethod), new { cryptoCode }); } } diff --git a/BTCPayServer/Views/UIMoneroLikeStore/GetStoreMoneroLikePaymentMethod.cshtml b/BTCPayServer/Views/UIMoneroLikeStore/GetStoreMoneroLikePaymentMethod.cshtml index ca281e8e5..53ef1b6c4 100644 --- a/BTCPayServer/Views/UIMoneroLikeStore/GetStoreMoneroLikePaymentMethod.cshtml +++ b/BTCPayServer/Views/UIMoneroLikeStore/GetStoreMoneroLikePaymentMethod.cshtml @@ -6,6 +6,8 @@ ViewData.SetActivePage(Model.CryptoCode, $"{Model.CryptoCode} Settings", Model.CryptoCode); } + +
@if (!ViewContext.ModelState.IsValid)