mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 04:44:43 +00:00
Update trade_filter_store.dart
This commit is contained in:
parent
686fa2ba0b
commit
110c08b9d1
1 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,7 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
displayTrocador = true,
|
displayTrocador = true,
|
||||||
displayExolix = true,
|
displayExolix = true,
|
||||||
displayThorChain = true,
|
displayThorChain = true,
|
||||||
|
displayMayaChain = true,
|
||||||
displayLetsExchange = true,
|
displayLetsExchange = true,
|
||||||
displayStealthEx = true;
|
displayStealthEx = true;
|
||||||
|
|
||||||
|
@ -44,6 +45,9 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
@observable
|
@observable
|
||||||
bool displayThorChain;
|
bool displayThorChain;
|
||||||
|
|
||||||
|
@observable
|
||||||
|
bool displayMayaChain;
|
||||||
|
|
||||||
@observable
|
@observable
|
||||||
bool displayLetsExchange;
|
bool displayLetsExchange;
|
||||||
|
|
||||||
|
@ -58,6 +62,7 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
displayTrocador &&
|
displayTrocador &&
|
||||||
displayExolix &&
|
displayExolix &&
|
||||||
displayThorChain &&
|
displayThorChain &&
|
||||||
|
displayMayaChain &&
|
||||||
displayLetsExchange &&
|
displayLetsExchange &&
|
||||||
displayStealthEx;
|
displayStealthEx;
|
||||||
|
|
||||||
|
@ -88,6 +93,9 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
case ExchangeProviderDescription.thorChain:
|
case ExchangeProviderDescription.thorChain:
|
||||||
displayThorChain = !displayThorChain;
|
displayThorChain = !displayThorChain;
|
||||||
break;
|
break;
|
||||||
|
case ExchangeProviderDescription.mayaChain:
|
||||||
|
displayMayaChain = !displayMayaChain;
|
||||||
|
break;
|
||||||
case ExchangeProviderDescription.letsExchange:
|
case ExchangeProviderDescription.letsExchange:
|
||||||
displayLetsExchange = !displayLetsExchange;
|
displayLetsExchange = !displayLetsExchange;
|
||||||
case ExchangeProviderDescription.stealthEx:
|
case ExchangeProviderDescription.stealthEx:
|
||||||
|
@ -103,6 +111,7 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
displayTrocador = false;
|
displayTrocador = false;
|
||||||
displayExolix = false;
|
displayExolix = false;
|
||||||
displayThorChain = false;
|
displayThorChain = false;
|
||||||
|
displayMayaChain = false;
|
||||||
displayLetsExchange = false;
|
displayLetsExchange = false;
|
||||||
displayStealthEx = false;
|
displayStealthEx = false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -114,6 +123,7 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
displayTrocador = true;
|
displayTrocador = true;
|
||||||
displayExolix = true;
|
displayExolix = true;
|
||||||
displayThorChain = true;
|
displayThorChain = true;
|
||||||
|
displayMayaChain = true;
|
||||||
displayLetsExchange = true;
|
displayLetsExchange = true;
|
||||||
displayStealthEx = true;
|
displayStealthEx = true;
|
||||||
}
|
}
|
||||||
|
@ -143,6 +153,8 @@ abstract class TradeFilterStoreBase with Store {
|
||||||
(displayExolix && item.trade.provider == ExchangeProviderDescription.exolix) ||
|
(displayExolix && item.trade.provider == ExchangeProviderDescription.exolix) ||
|
||||||
(displayThorChain &&
|
(displayThorChain &&
|
||||||
item.trade.provider == ExchangeProviderDescription.thorChain) ||
|
item.trade.provider == ExchangeProviderDescription.thorChain) ||
|
||||||
|
(displayMayaChain &&
|
||||||
|
item.trade.provider == ExchangeProviderDescription.mayaChain) ||
|
||||||
(displayLetsExchange &&
|
(displayLetsExchange &&
|
||||||
item.trade.provider == ExchangeProviderDescription.letsExchange) ||
|
item.trade.provider == ExchangeProviderDescription.letsExchange) ||
|
||||||
(displayStealthEx && item.trade.provider == ExchangeProviderDescription.stealthEx))
|
(displayStealthEx && item.trade.provider == ExchangeProviderDescription.stealthEx))
|
||||||
|
|
Loading…
Reference in a new issue