Added enable back to add wallet view
MODIFY
WalletWasabi.Fluent/ViewModels/AddWallet/AddWalletPageViewModel.cs
WalletWasabi.Fluent/ViewModels/AddWallet/AddWalletPageViewModel.cs
@@ -30,6 +30,7 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
{
[AutoNotify] private string _walletName = "";
[AutoNotify] private bool _optionsEnabled;
+ [AutoNotify] private bool _enableBack;
private readonly LegalDocuments _legalDocuments;
@@ -43,6 +44,10 @@ namespace WalletWasabi.Fluent.ViewModels.AddWallet
SelectionMode = NavBarItemSelectionMode.Button;
_legalDocuments = legalDocuments;
+ Navigate()
+ .WhenAnyValue(x => x.CanNavigateBack)
+ .Subscribe(x => EnableBack = x);
+
this.WhenAnyValue(x => x.WalletName)
.ObserveOn(RxApp.MainThreadScheduler)
.Select(x => !string.IsNullOrWhiteSpace(x))

MODIFY
WalletWasabi.Fluent/Views/AddWallet/AddWalletPageView.axaml
WalletWasabi.Fluent/Views/AddWallet/AddWalletPageView.axaml
x:DataType="vm:AddWalletPageViewModel"
x:CompileBindings="True"
x:Class="WalletWasabi.Fluent.Views.AddWallet.AddWalletPageView">
- <c:ContentArea Title="Add Wallet" Caption="Type in your wallet's name and select an option:" IsBusy="{Binding IsBusy}">
+ <c:ContentArea Title="Add Wallet" Caption="Type in your wallet's name and select an option:"
+ EnableBack="{Binding EnableBack}"
+ IsBusy="{Binding IsBusy}">
<DockPanel>
<StackPanel DockPanel.Dock="Top" Margin="0 0 0 20">
<Label Content="Wallet _Name:" Target="walletNameTb" />

Added enable back to add wallet view