Add SendViewModel
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.Send;
namespace WalletWasabi.Fluent.ViewModels;
@@ -240,6 +241,17 @@ public partial class MainViewModel : ViewModelBase
return null;
});
+
+ SendViewModel.RegisterLazy(() =>
+ {
+ if (UiServices.WalletManager.SelectedWallet is WalletViewModel walletViewModel)
+ {
+ // TODO: Check if we can send?
+ return new SendViewModel(walletViewModel);
+ }
+
+ return null;
+ });
}
public void ApplyUiConfigWindowSate()

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

Add SendViewModel