hardware wallet auth dialog view
RENAME
WalletWasabi.Fluent/ViewModels/Dialogs/HardwareWalletAuthDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/HardwareWalletAuthDialogViewModel.cs
@@ -9,7 +9,7 @@ using WalletWasabi.CoinJoin.Client.Clients.Queuing;
using WalletWasabi.Hwi;
using WalletWasabi.Wallets;
-namespace WalletWasabi.Fluent.ViewModels.Dialogs
+namespace WalletWasabi.Fluent.ViewModels.Dialogs.Authorization
{
[NavigationMetaData(Title = "Enter your password")]
public partial class HardwareWalletAuthDialogViewModel : DialogViewModelBase<SmartTransaction?>

RENAME
WalletWasabi.Fluent/ViewModels/Dialogs/PasswordAuthDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/Dialogs/Authorization/PasswordAuthDialogViewModel.cs
@@ -2,12 +2,10 @@ using System.Reactive.Linq;
using System.Threading.Tasks;
using ReactiveUI;
using WalletWasabi.Blockchain.Transactions;
-using WalletWasabi.Fluent.Validation;
-using WalletWasabi.Models;
using WalletWasabi.Userfacing;
using WalletWasabi.Wallets;
-namespace WalletWasabi.Fluent.ViewModels.Dialogs
+namespace WalletWasabi.Fluent.ViewModels.Dialogs.Authorization
{
[NavigationMetaData(Title = "Enter your password")]
public partial class PasswordAuthDialogViewModel : DialogViewModelBase<SmartTransaction?>

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -71,6 +71,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
Navigate().Clear();
}
});
+
+ EnableAutoBusyOn(NextCommand);
}
public string BtcAmountText { get; }

ADD
WalletWasabi.Fluent/Views/Dialogs/Authorization/HardwareWalletAuthDialogView.axaml
+<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:c="using:WalletWasabi.Fluent.Controls"
+ xmlns:dialog="using:WalletWasabi.Fluent.ViewModels.Dialogs"
+ xmlns:authorization="clr-namespace:WalletWasabi.Fluent.ViewModels.Dialogs.Authorization"
+ mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
+ x:DataType="authorization:HardwareWalletAuthDialogViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.Dialogs.Authorization.HardwareWalletAuthDialogView">
+ <UserControl.KeyBindings>
+ <KeyBinding Gesture="Enter" Command="{Binding NextCommand}" />
+ </UserControl.KeyBindings>
+ <c:ContentArea Title="{Binding Title}"
+ EnableBack="True"
+ EnableCancel="True" CancelContent="Cancel"
+ EnableNext="True" NextContent="Continue"
+ IsBusy="{Binding IsBusy}">
+ </c:ContentArea>
+</UserControl>

ADD
WalletWasabi.Fluent/Views/Dialogs/Authorization/HardwareWalletAuthDialogView.axaml.cs
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Fluent.Views.Dialogs.Authorization
+{
+ public class HardwareWalletAuthDialogView : UserControl
+ {
+ public HardwareWalletAuthDialogView()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}

RENAME
WalletWasabi.Fluent/Views/Dialogs/PasswordAuthDialogView.axaml
WalletWasabi.Fluent/Views/Dialogs/Authorization/PasswordAuthDialogView.axaml
xmlns:c="using:WalletWasabi.Fluent.Controls"
xmlns:behaviors="using:WalletWasabi.Fluent.Behaviors"
xmlns:i="using:Avalonia.Xaml.Interactivity"
- xmlns:dialog="using:WalletWasabi.Fluent.ViewModels.Dialogs"
+ xmlns:authorization="clr-namespace:WalletWasabi.Fluent.ViewModels.Dialogs.Authorization"
mc:Ignorable="d" d:DesignWidth="428" d:DesignHeight="371"
- x:DataType="dialog:PasswordAuthDialogViewModel"
+ x:DataType="authorization:PasswordAuthDialogViewModel"
x:CompileBindings="True"
- x:Class="WalletWasabi.Fluent.Views.Dialogs.PasswordAuthDialogView">
+ x:Class="WalletWasabi.Fluent.Views.Dialogs.Authorization.PasswordAuthDialogView">
<UserControl.KeyBindings>
<KeyBinding Gesture="Enter" Command="{Binding NextCommand}" />
</UserControl.KeyBindings>

RENAME
WalletWasabi.Fluent/Views/Dialogs/PasswordAuthDialogView.axaml.cs
WalletWasabi.Fluent/Views/Dialogs/Authorization/PasswordAuthDialogView.axaml.cs
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
-namespace WalletWasabi.Fluent.Views.Dialogs
+namespace WalletWasabi.Fluent.Views.Dialogs.Authorization
{
public class PasswordAuthDialogView : UserControl
{

hardware wallet auth dialog view