Show success on import wallet
MODIFY
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
WalletWasabi.Fluent/ViewModels/TransactionBroadcasting/BroadcastTransactionViewModel.cs
@@ -5,7 +5,6 @@ using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.TransactionBroadcasting;
using WalletWasabi.Blockchain.Transactions;
-using WalletWasabi.Fluent.Helpers;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Logging;
using WalletWasabi.Stores;
@@ -87,15 +86,15 @@ namespace WalletWasabi.Fluent.ViewModels.TransactionBroadcasting
try
{
await broadcaster.SendTransactionAsync(transaction);
+ Navigate().To(new SuccessBroadcastTransactionViewModel());
}
catch (Exception ex)
{
Logger.LogError(ex);
+ Navigate().Back();
await ShowErrorAsync(ex.ToUserFriendlyString(), "It was not possible to broadcast the transaction.");
}
- Navigate().Back();
-
IsBusy = false;
},
nextCommandCanExecute);

ADD
WalletWasabi.Fluent/Views/TransactionBroadcasting/SuccessBroadcastTransactionView.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="clr-namespace:WalletWasabi.Fluent.Controls"
+ xmlns:transactionBroadcasting="clr-namespace:WalletWasabi.Fluent.ViewModels.TransactionBroadcasting"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ x:DataType="transactionBroadcasting:SuccessBroadcastTransactionViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.TransactionBroadcasting.SuccessBroadcastTransactionView">
+ <c:ContentArea Title="{Binding Title}"
+ EnableNext="True" NextContent="Done"
+ ScrollViewer.VerticalScrollBarVisibility="Disabled">
+ <DockPanel>
+ <TextBlock Text="Your transaction was successfully broadcasted." DockPanel.Dock="Bottom" TextAlignment="Center" TextWrapping="Wrap" Margin="0 40"/>
+ <Viewbox MaxHeight="200" HorizontalAlignment="Center" VerticalAlignment="Center">
+ <Viewbox.Styles>
+ <Style Selector=":is(PathIcon).fadeIn">
+ <Style.Animations>
+ <Animation Duration="0:0:1">
+ <KeyFrame Cue="0%">
+ <Setter Property="Opacity" Value="0.0"/>
+ </KeyFrame>
+ <KeyFrame Cue="100%">
+ <Setter Property="Opacity" Value="1.0"/>
+ </KeyFrame>
+ </Animation>
+ </Style.Animations>
+ </Style>
+ </Viewbox.Styles>
+ <PathIcon Data="{StaticResource checkmark_filled}" Foreground="{DynamicResource SystemControlBackgroundAccentBrush}" Classes="fadeIn" />
+ </Viewbox>
+ </DockPanel>
+ </c:ContentArea>
+</UserControl>
\ No newline at end of file

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

MODIFY
WalletWasabi.Fluent/WalletWasabi.Fluent.csproj
WalletWasabi.Fluent/WalletWasabi.Fluent.csproj
<SubType>Designer</SubType>
</AvaloniaResource>
<AvaloniaResource Include="Assets\**" />
+ <Compile Update="Views\TransactionBroadcasting\SuccessBroadcastTransactionView.axaml.cs">
+ <DependentUpon>SuccessBroadcastTransactionView.axaml</DependentUpon>
+ <SubType>Code</SubType>
+ </Compile>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.999-cibuild0012147-beta" />

Show success on import wallet