link pw finder to button
MODIFY
WalletWasabi.Fluent/ViewModels/Login/LoginViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/LoginViewModel.cs
using System.Windows.Input;
using ReactiveUI;
using WalletWasabi.Blockchain.Keys;
+using WalletWasabi.Fluent.ViewModels.Login.PasswordFinder;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Fluent.ViewModels.Wallets;
using WalletWasabi.Userfacing;
@@ -22,13 +23,12 @@ namespace WalletWasabi.Fluent.ViewModels.Login
IsPasswordNeeded = !KeyManager.IsWatchOnly;
_walletName = walletViewModelBase.WalletName;
_password = "";
+ var wallet = walletViewModelBase.Wallet;
NextCommand = ReactiveCommand.CreateFromTask(async () =>
{
IsBusy = true;
- var wallet = walletViewModelBase.Wallet;
-
IsPasswordIncorrect = await Task.Run(async () =>
{
if (!IsPasswordNeeded)
@@ -65,10 +65,15 @@ namespace WalletWasabi.Fluent.ViewModels.Login
Password = "";
IsPasswordIncorrect = false;
});
+
+ ForgotPasswordCommand = ReactiveCommand.Create(() =>
+ Navigate(NavigationTarget.DialogScreen).To(new PasswordFinderIntroduceViewModel(wallet)));
}
public ICommand OkCommand { get; }
+ public ICommand ForgotPasswordCommand { get; }
+
public KeyManager KeyManager { get; }
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/AddWallet/HardwareWallet/DetectedHardwareWalletView.axaml
WalletWasabi.Fluent/Views/AddWallet/HardwareWallet/DetectedHardwareWalletView.axaml
<c:QuestionControl Text="{Binding TypeName, StringFormat={}{0} was detected. Is this correct?}"
YesCommand="{Binding NextCommand}"
NoCommand="{Binding NoCommand}"
- Icon="{Binding Path='Type', Converter={x:Static conv:WalletTypeImageConverter.Instance}}"/>
+ Icon="{Binding Path='Type', Converter={x:Static conv:HardwareWalletIconConverter.Instance}}"/>
</c:ContentArea>
</UserControl>

MODIFY
WalletWasabi.Fluent/Views/Login/LoginView.axaml
WalletWasabi.Fluent/Views/Login/LoginView.axaml
</i:Interaction.Behaviors>
</TextBox>
<Panel Margin="0 -20 0 0 ">
- <Button Classes="activeHyperLink skip" Content="Forgot password?" HorizontalAlignment="Left"/>
+ <Button Classes="activeHyperLink skip" Content="Forgot password?" HorizontalAlignment="Left" Command="{Binding ForgotPasswordCommand}"/>
<Button Content="Login" IsDefault="{Binding !IsPasswordIncorrect}" IsEnabled="{Binding !IsPasswordIncorrect}" Classes="action" HorizontalAlignment="Right" Command="{Binding NextCommand}"/>
</Panel>
</StackPanel>

link pw finder to button