add payjoin to preview screen
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -43,6 +43,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
EnableBack = true;
+ PayJoinUrl = info.PayJoinClient?.PaymentUrl.AbsoluteUri;
+ IsPayJoin = PayJoinUrl is { };
+
NextCommand = ReactiveCommand.CreateFromTask(async () => await OnNext(wallet, broadcaster, transaction));
}
public string BtcAmountText { get; }
@@ -59,6 +62,10 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
public string FiatFeeText { get; }
+ public string? PayJoinUrl { get; }
+
+ public bool IsPayJoin { get; }
+
private async Task OnNext(Wallet wallet, TransactionBroadcaster broadcaster, BuildTransactionResult transaction)
{
var transactionAuthorizationInfo = new TransactionAuthorizationInfo(transaction);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
<Separator />
+ <StackPanel Orientation="Horizontal" Spacing="30" IsVisible="{Binding IsPayJoin}">
+ <PathIcon Width="24" Height="24"
+ Foreground="{DynamicResource SystemAccentColor}" />
+ <StackPanel Spacing="5">
+ <TextBlock Classes="storyline"
+ Text="PayJoin will be used to protect your privacy" />
+ <TextBlock Classes="field"
+ Text="{Binding PayJoinUrl, FallbackValue=https://testnet.demo.btcpayserver.org/BTC/pj}" />
+ </StackPanel>
+ </StackPanel>
+
+ <Separator IsVisible="{Binding IsPayJoin}" />
+
<StackPanel Orientation="Horizontal" Spacing="30">
<PathIcon Width="24" Height="24" Data="{StaticResource timer_regular}"
Foreground="{DynamicResource SystemAccentColor}" />

add payjoin to preview screen