Add ReceiveViewModel
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -20,6 +20,7 @@ using WalletWasabi.Fluent.ViewModels.TransactionBroadcasting;
using WalletWasabi.Fluent.ViewModels.Wallets;
using WalletWasabi.Fluent.ViewModels.Wallets.Advanced;
using WalletWasabi.Fluent.ViewModels.Wallets.Advanced.WalletCoins;
+using WalletWasabi.Fluent.ViewModels.Wallets.Receive;
using WalletWasabi.Fluent.ViewModels.Wallets.Send;
namespace WalletWasabi.Fluent.ViewModels;
@@ -252,6 +253,16 @@ public partial class MainViewModel : ViewModelBase
return null;
});
+
+ ReceiveViewModel.RegisterLazy(() =>
+ {
+ if (UiServices.WalletManager.SelectedWallet is WalletViewModel walletViewModel)
+ {
+ return new ReceiveViewModel(walletViewModel.Wallet);
+ }
+
+ return null;
+ });
}
public void ApplyUiConfigWindowSate()

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveViewModel.cs
@@ -14,10 +14,12 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive;
[NavigationMetaData(
Title = "Receive",
- Caption = "",
+ Caption = "Displays wallet receive dialog",
IconName = "wallet_action_receive",
+ Order = 6,
+ Category = "Wallet",
+ Keywords = new[] { "Wallet", "Receive", "Action", },
NavBarPosition = NavBarPosition.None,
- Searchable = false,
NavigationTarget = NavigationTarget.DialogScreen)]
public partial class ReceiveViewModel : RoutableViewModel
{

Add ReceiveViewModel