Add WalletStatsViewModel
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -18,6 +18,7 @@ using WalletWasabi.Fluent.ViewModels.Settings;
using WalletWasabi.Fluent.ViewModels.StatusIcon;
using WalletWasabi.Fluent.ViewModels.TransactionBroadcasting;
using WalletWasabi.Fluent.ViewModels.Wallets;
+using WalletWasabi.Fluent.ViewModels.Wallets.Advanced;
using WalletWasabi.Fluent.ViewModels.Wallets.Advanced.WalletCoins;
namespace WalletWasabi.Fluent.ViewModels;
@@ -218,6 +219,16 @@ public partial class MainViewModel : ViewModelBase
return null;
});
+
+ WalletStatsViewModel.RegisterLazy(() =>
+ {
+ if (UiServices.WalletManager.SelectedWallet is WalletViewModel walletViewModel)
+ {
+ return new WalletStatsViewModel(walletViewModel);
+ }
+
+ return null;
+ });
}
public void ApplyUiConfigWindowSate()

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletStatsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletStatsViewModel.cs
@@ -10,7 +10,15 @@ using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Advanced;
-[NavigationMetaData(Title = "Wallet Stats")]
+[NavigationMetaData(
+ Title = "Wallet Stats",
+ Caption = "Displays wallet stats",
+ IconName = "nav_wallet_24_regular",
+ Order = 3,
+ Category = "Wallet",
+ Keywords = new[] { "Wallet", "Stats", },
+ NavBarPosition = NavBarPosition.None,
+ NavigationTarget = NavigationTarget.DialogScreen)]
public partial class WalletStatsViewModel : RoutableViewModel
{
private readonly Wallet _wallet;

Add WalletStatsViewModel