Skip to content

Commit

Permalink
Update visual feedback for speed up transaction
Browse files Browse the repository at this point in the history
The change includes modifying the "Speed Up Transaction" button in the History table to provide better visual feedback. The icon now changes depending on the state of the transaction. If the transaction has been sped up already, it shows a different icon compared to when it has not been sped up.
  • Loading branch information
SuperJMN committed Jun 7, 2024
1 parent 66fe8b4 commit de5dbfd
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,18 @@
<MenuItem Header="Speed Up Transaction" IsVisible="{Binding CanBeSpedUp}"
Command="{Binding SpeedUpTransactionCommand}">
<MenuItem.Icon>
<PathIcon Data="{StaticResource rocket_regular}" />
<PathIcon Classes.AlreadySpedUp="{Binding HasBeenSpedUp}"
Classes.NotSpedUp="{Binding !HasBeenSpedUp}"
Height="16">
<PathIcon.Styles>
<Style Selector="PathIcon.AlreadySpedUp">
<Setter Property="Data" Value="{StaticResource rocket_confirmed}" />
</Style>
<Style Selector="PathIcon.NotSpedUp">
<Setter Property="Data" Value="{StaticResource rocket_regular}" />
</Style>
</PathIcon.Styles>
</PathIcon>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="Cancel Transaction" IsVisible="{Binding Transaction.CanCancelTransaction}"
Expand Down

0 comments on commit de5dbfd

Please sign in to comment.