give more details in the dialog
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacyControlViewModel.cs
@@ -66,12 +66,12 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
}
catch (InsufficientBalanceException)
{
- var dialog = new InsufficientBalanceDialogViewModel(BalanceType.Pocket);
+ var transactionResult = TransactionHelpers.BuildTransaction(_wallet, transactionInfo.Address, transactionInfo.Amount, transactionInfo.Labels, transactionInfo.FeeRate, coins, subtractFee: true);
+ var dialog = new InsufficientBalanceDialogViewModel(BalanceType.Pocket, transactionResult);
var result = await NavigateDialog(dialog, NavigationTarget.DialogScreen);
if (result.Result)
{
- var transactionResult = TransactionHelpers.BuildTransaction(_wallet, transactionInfo.Address, transactionInfo.Amount, transactionInfo.Labels, transactionInfo.FeeRate, coins, subtractFee: true);
Navigate().To(new TransactionPreviewViewModel(wallet, transactionInfo, broadcaster, transactionResult));
}
else

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -146,12 +146,12 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
}
catch (InsufficientBalanceException)
{
- var dialog = new InsufficientBalanceDialogViewModel(BalanceType.Private);
+ var txRes = TransactionHelpers.BuildTransaction(wallet, transactionInfo.Address, totalMixedCoinsAmount, transactionInfo.Labels, transactionInfo.FeeRate, mixedCoins, subtractFee: true);
+ var dialog = new InsufficientBalanceDialogViewModel(BalanceType.Private, txRes);
var result = await NavigateDialog(dialog, NavigationTarget.DialogScreen);
if (result.Result)
{
- var txRes = TransactionHelpers.BuildTransaction(wallet, transactionInfo.Address, totalMixedCoinsAmount, transactionInfo.Labels, transactionInfo.FeeRate, mixedCoins, subtractFee: true);
Navigate().To(new OptimisePrivacyViewModel(wallet, transactionInfo, broadcaster, txRes));
return;
}

give more details in the dialog