Server Settings: Update Policies page (#4326)

Handles the multiple submit buttons on that page and closes #4319.

Contains some UI unifications with other pages and also shows the block explorers without needing to toggle the section via JS.
This commit is contained in:
d11n
2022-11-22 02:27:27 +01:00
committed by GitHub
parent eda0f7327e
commit 6194c156bd
2 changed files with 155 additions and 167 deletions

View File

@@ -298,9 +298,9 @@ namespace BTCPayServer.Controllers
[HttpPost("server/policies")]
public async Task<IActionResult> Policies([FromServices] BTCPayNetworkProvider btcPayNetworkProvider, PoliciesSettings settings, string command = "")
{
ViewBag.UpdateUrlPresent = _Options.UpdateUrl != null;
ViewBag.AppsList = await GetAppSelectList();
if (command == "add-domain")
{
ModelState.Clear();