Skip to content
Browse files

Disable Label textbox when spend whole coins

  • Loading branch information...
lontivero committed Nov 9, 2018
1 parent 2911726 commit 95f6fa5312fafb8abccc30380ab8f943e492a678
@@ -25,7 +25,7 @@
<StackPanel DockPanel.Dock="Bottom" Margin="0 10" Spacing="10" HorizontalAlignment="Left">
<TextBlock>Note that, you must select coins you want to spend from.</TextBlock>
<controls:ExtendedTextBox Text="{Binding Address}" Watermark="Address" UseFloatingWatermark="True" />
<controls:ExtendedTextBox Text="{Binding Label}" Watermark="Label" UseFloatingWatermark="True">
<controls:ExtendedTextBox Text="{Binding Label}" Watermark="Label" UseFloatingWatermark="True" IsEnabled="{Binding !IsMax}">
Start labelling today and your privacy will thank you tomorrow!
@@ -93,7 +93,7 @@ public SendTabViewModel(WalletViewModel walletViewModel)
Password = Guard.Correct(Password);
if (string.IsNullOrWhiteSpace(Label))
if (!IsMax && string.IsNullOrWhiteSpace(Label))
throw new InvalidOperationException("Label is required.");

0 comments on commit 95f6fa5

Please sign in to comment.
You can’t perform that action at this time.