rebuild txn with the label
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
@@ -104,16 +104,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
NextCommand = ReactiveCommand.CreateFromTask(async () =>
{
- var labelDialog = new LabelEntryDialogViewModel(_wallet, _transactionInfo);
-
- var result = await NavigateDialogAsync(labelDialog, NavigationTarget.CompactDialogScreen);
-
- if (result.Result is null)
- {
- return;
- }
-
- _transactionInfo.UserLabels = result.Result;
_transactionInfo.Amount = new Money(AmountBtc, MoneyUnit.BTC);
Navigate().To(new TransactionPreviewViewModel(wallet, _transactionInfo));

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -331,14 +331,17 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
private async Task OnConfirmAsync()
{
- if (_transaction is { })
+ var labelDialog = new LabelEntryDialogViewModel(_wallet, _info);
+ var result = await NavigateDialogAsync(labelDialog, NavigationTarget.CompactDialogScreen);
+ if (result.Result is null)
{
- var transaction = _transaction;
+ return;
+ }
+ _info.UserLabels = result.Result;
+ var transaction = TransactionHelpers.BuildTransaction(_wallet, _info);
var transactionAuthorizationInfo = new TransactionAuthorizationInfo(transaction);
-
var authResult = await AuthorizeAsync(transactionAuthorizationInfo);
-
if (authResult)
{
IsBusy = true;
@@ -359,7 +362,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
IsBusy = false;
}
}
- }
private async Task<bool> AuthorizeAsync(TransactionAuthorizationInfo transactionAuthorizationInfo)
{

rebuild txn with the label