Skip to content

Commit

Permalink
copy balance to amount input on checking all funds
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriFS committed Oct 19, 2023
1 parent e6ce754 commit a509a8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Pages/Wallets.razor
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
<Column ColumnSize="ColumnSize.Is6">
<Field>
<FieldBody>
<Check TValue="bool" @bind-Checked="@_transferAllFunds">Transfer all funds</Check>
<Check TValue="bool" CheckedChanged="OnTransferAllFundsCheckedChanged" Checked="@_transferAllFunds">Transfer all funds</Check>
</FieldBody>
</Field>
</Column>
Expand Down Expand Up @@ -1402,4 +1402,9 @@
}
}
private void OnTransferAllFundsCheckedChanged(bool value)
{
_transferAllFunds = value;
_amountToTransfer = _sourceBalance;
}
}

0 comments on commit a509a8b

Please sign in to comment.