Fix xmr status message (#6111)

This commit is contained in:
napoly 2024-07-19 14:46:24 +02:00 committed by GitHub
parent ce4d73fcad
commit acbc75d077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

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

View File

@ -6,6 +6,8 @@
ViewData.SetActivePage(Model.CryptoCode, $"{Model.CryptoCode} Settings", Model.CryptoCode);
}
<partial name="_StatusMessage" />
<div class="row">
<div class="col-md-8">
@if (!ViewContext.ModelState.IsValid)