diff --git a/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml b/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml index 532ecc486..3bedd961a 100644 --- a/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml +++ b/BTCPayServer/Views/Wallets/WalletPSBTDecoded.cshtml @@ -1,29 +1,9 @@ @model WalletPSBTViewModel @addTagHelper *, BundlerMinifier.TagHelpers @{ + var isReady = !Model.HasErrors; Layout = "_LayoutWizard"; - ViewData.SetActivePageAndTitle(WalletsNavPages.PSBT, "PSBT", Context.GetStoreData().StoreName); -} - -@section PageHeadContent { - - -} - -@section PageFootContent { - - - + ViewData.SetActivePageAndTitle(WalletsNavPages.PSBT, isReady ? "Transaction Broadcasting" : "Transaction Details", Context.GetStoreData().StoreName); } @section Navbar { @@ -35,51 +15,33 @@ } -
+

@ViewData["PageTitle"]

-

- You can either sign the PSBT or export and update it. -

- @if (Model.CanCalculateBalance) - { -

- If you broadcast this transaction, your balance will change: -
- @if (Model.Positive) - { - @Model.BalanceChange - } - else - { - @Model.BalanceChange - } -

- }
-@if (Model.HasErrors) +@if (!isReady) { -
+ -
+
- - + +
} else { -
+ -
+
@if (!string.IsNullOrEmpty(Model.SigningContext?.PayJoinBIP21)) { @@ -88,33 +50,8 @@ else } else { - + }
} - -

- Show export options -

- -
-

Export PSBT for signing

-
-
- - -
- - -
-
-
- -

Raw version

-
@Model.Decoded
-
@Model.PSBT
-
- - - diff --git a/BTCPayServer/Views/Wallets/WalletPSBTExport.cshtml b/BTCPayServer/Views/Wallets/WalletPSBTExport.cshtml index 1305c225c..33a4198ca 100644 --- a/BTCPayServer/Views/Wallets/WalletPSBTExport.cshtml +++ b/BTCPayServer/Views/Wallets/WalletPSBTExport.cshtml @@ -2,20 +2,24 @@ @addTagHelper *, BundlerMinifier.TagHelpers @{ Layout = "_LayoutWizard"; - ViewData.SetActivePageAndTitle(WalletsNavPages.PSBT, "PSBT Signing", Context.GetStoreData().StoreName); + ViewData.SetActivePageAndTitle(WalletsNavPages.PSBT, "Transaction Signing", Context.GetStoreData().StoreName); } @section PageHeadContent { + } @section PageFootContent { +