Skip to content

Commit

Permalink
Fix Balance Caption
Browse files Browse the repository at this point in the history
  • Loading branch information
ichthus1604 committed Jun 14, 2024
1 parent 09f3aa4 commit bfe2c77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions WalletWasabi.Fluent/ViewModels/Wallets/Send/SendViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ public SendViewModel(UiContext uiContext, IWalletModel walletModel, SendFlowMode
? Observable.Return(_walletModel.AmountProvider.Create(_parameters.AvailableAmount))
: _walletModel.Balances;

BalanceCaption =
_parameters.IsManual
? "Max:"
: "Balance:";

_suggestionLabels = new SuggestionLabelsViewModel(_walletModel, Intent.Send, 3);

SetupCancel(enableCancel: true, enableCancelOnEscape: true, enableCancelOnPressed: true);
Expand Down Expand Up @@ -129,8 +124,6 @@ public SendViewModel(UiContext uiContext, IWalletModel walletModel, SendFlowMode
_clipboardObserver = new ClipboardObserver(Balance);
}

public string BalanceCaption { get; }

public IObservable<Amount> Balance { get; }

public IObservable<string?> UsdContent => _clipboardObserver.ClipboardUsdContentChanged(RxApp.MainThreadScheduler);
Expand Down
2 changes: 1 addition & 1 deletion WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<!-- Balance -->
<PrivacyContentControl PrivacyReplacementMode="Text" DockPanel.Dock="Top" HorizontalAlignment="Center" Classes="h8" Opacity="0.6">
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="{Binding BalanceCaption}"/>
<TextBlock Text="Max:" Margin="0 1 0 0"/>
<Button Focusable="False" Classes="plainHyperlink h8" Command="{Binding InsertMaxCommand}">
<Interaction.Behaviors>
<EventTriggerBehavior EventName="Click">
Expand Down

0 comments on commit bfe2c77

Please sign in to comment.