CAKE-120 | added xmr.to exchange description to exchange and exchange template pages; made observable isReceiveAmountEntered parameter in the exchange view model; added isReceiveAmountEntered parameter to applyTemplate() (exchange page) and reset() (exchange view model); added possibility to enter amount in receive card (exchange template page)

This commit is contained in:
OleksandrSobol
2020-10-12 19:47:01 +03:00
parent 9a169254a6
commit 20c35451d5
3 changed files with 21 additions and 3 deletions
@@ -93,6 +93,7 @@ abstract class ExchangeViewModelBase with Store {
@observable
bool isReceiveAddressEnabled;
@observable
bool isReceiveAmountEntered;
Limits limits;
@@ -256,6 +257,7 @@ abstract class ExchangeViewModelBase with Store {
@action
void reset() {
isReceiveAmountEntered = false;
depositAmount = '';
receiveAmount = '';
depositCurrency = CryptoCurrency.xmr;