Don't allow to select coin if it's in a CJ round
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
@@ -19,6 +19,7 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
[AutoNotify] private bool _confirmed;
[AutoNotify] private bool _coinJoinInProgress;
[AutoNotify] private bool _isSelected;
+ [AutoNotify] private bool _isAllowedToSend;
[AutoNotify] private bool _isBanned;
[AutoNotify] private string? _bannedUntilUtcToolTip;
[AutoNotify] private string? _confirmedToolTip;
@@ -34,6 +35,7 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
Coin.WhenAnyValue(c => c.HdPubKey.Cluster.Labels).Subscribe(x => SmartLabel = x).DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.HdPubKey.AnonymitySet).Subscribe(x => AnonymitySet = (int)x).DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.CoinJoinInProgress).Subscribe(x => CoinJoinInProgress = x).DisposeWith(_disposables);
+ Coin.WhenAnyValue(c => c.CoinJoinInProgress).Subscribe(x => IsAllowedToSend = !x).DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.IsBanned).Subscribe(x => IsBanned = x).DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.BannedUntilUtc).WhereNotNull().Subscribe(x => BannedUntilUtcToolTip = $"Can't participate in coinjoin until: {x:g}").DisposeWith(_disposables);
Coin.WhenAnyValue(c => c.Height).Select(_ => Coin.GetConfirmations()).Subscribe(x => ConfirmedToolTip = $"{x} confirmation{TextHelpers.AddSIfPlural(x)}").DisposeWith(_disposables);

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/SelectionColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/SelectionColumnView.axaml
x:DataType="walletcoins:WalletCoinViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.Wallets.Advanced.WalletCoins.Columns.SelectionColumnView">
- <CheckBox IsChecked="{Binding IsSelected}" Margin="2 0" HorizontalAlignment="Center" VerticalAlignment="Center" />
+ <CheckBox IsChecked="{Binding IsSelected}" Margin="2 0" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="{Binding IsAllowedToSend}" />
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/WalletCoinsView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/WalletCoinsView.axaml
<DockPanel LastChildFill="True"
Background="Transparent"
x:CompileBindings="True" x:DataType="walletcoins:WalletCoinViewModel">
- <i:Interaction.Behaviors>
- <behaviors:ExecuteCommandOnDoubleTapped Command="{Binding ToggleSelectCommand, Mode=OneWay}"/>
- </i:Interaction.Behaviors>
<Border Name="PART_SelectionIndicator"
BorderThickness="2 0 0 0"
DockPanel.Dock="Left"

Don't allow to select coin if it's in a CJ round