wire up labels on send ux.
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
using System;
using System.Collections.Generic;
+using System.Collections.ObjectModel;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
@@ -30,6 +31,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
[AutoNotify] private decimal _amountBtc;
[AutoNotify] private decimal _exchangeRate;
[AutoNotify] private bool _isFixedAmount;
+ [AutoNotify] private ObservableCollection<string> _labels;
private string? _payJoinEndPoint;
private bool _parsingUrl;
@@ -37,6 +39,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
_to = "";
_owner = walletVm;
+ _labels = new ObservableCollection<string>();
ExchangeRate = walletVm.Wallet.Synchronizer.UsdExchangeRate;
@@ -86,6 +89,10 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
if (!label.IsEmpty)
{
+ foreach (var labelString in label.Labels)
+ {
+ Labels.Add(labelString);
+ }
//LabelSuggestion.Label = label;
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
<DockPanel>
<Label DockPanel.Dock="Left" Content="_Labels:" Target="LabelTagBox" />
<c:TagsBox x:Name="LabelTagBox"
+ Items="{Binding Labels}"
ItemCountLimit="12"
- RestrictInputToSuggestions="True" />
+ RestrictInputToSuggestions="False" />
</DockPanel>
</StackPanel>
<DockPanel MinHeight="60">

wire up labels on send ux.