Add IsWalletEmpty property
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -27,6 +27,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
private readonly object _transactionListLock = new();
[AutoNotify] private HistoryItemViewModel? _selectedItem;
+ [AutoNotify] private bool _isWalletEmpty;
public HistoryViewModel(WalletViewModel walletViewModel, IObservable<Unit> updateTrigger)
{
@@ -36,6 +37,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
_transactions = new ObservableCollectionExtended<HistoryItemViewModel>();
_unfilteredTransactions = new ObservableCollectionExtended<HistoryItemViewModel>();
+ this.WhenAnyValue(x => x.UnfilteredTransactions.Count)
+ .Subscribe(x => IsWalletEmpty = x <= 0);
+
var sortDescription = DataGridSortDescription.FromPath(nameof(HistoryItemViewModel.OrderIndex), ListSortDirection.Descending);
CollectionView = new DataGridCollectionView(Transactions);
CollectionView.SortDescriptions.Add(sortDescription);

Add IsWalletEmpty property