Refactor vault (#6678)

* Use Blazor for the Vault code

* Put elements in different file

* Controller abstraction

* Break into VaultElement
This commit is contained in:
Nicolas Dorier
2025-04-21 17:09:46 +09:00
committed by GitHub
parent ec603a3804
commit 2f26979ed7
46 changed files with 1367 additions and 1865 deletions

View File

@@ -1324,7 +1324,7 @@ namespace BTCPayServer.Controllers
vm.Outputs.Last().Labels = vm.Outputs.Last().Labels.Concat(addressLabels.Select(tuple => tuple.Label)).ToArray();
}
}
private IActionResult ViewVault(WalletId walletId, WalletPSBTViewModel vm)
{
return View(nameof(WalletSendVault),
@@ -1332,8 +1332,6 @@ namespace BTCPayServer.Controllers
{
SigningContext = vm.SigningContext,
WalletId = walletId.ToString(),
WebsocketPath = Url.Action(nameof(UIVaultController.VaultBridgeConnection), "UIVault",
new { walletId = walletId.ToString() }),
ReturnUrl = vm.ReturnUrl,
BackUrl = vm.BackUrl
});