mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +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,
|
||||
displayExolix = true,
|
||||
displayThorChain = true,
|
||||
displayMayaChain = true,
|
||||
displayLetsExchange = true,
|
||||
displayStealthEx = true;
|
||||
|
||||
|
@ -44,6 +45,9 @@ abstract class TradeFilterStoreBase with Store {
|
|||
@observable
|
||||
bool displayThorChain;
|
||||
|
||||
@observable
|
||||
bool displayMayaChain;
|
||||
|
||||
@observable
|
||||
bool displayLetsExchange;
|
||||
|
||||
|
@ -58,6 +62,7 @@ abstract class TradeFilterStoreBase with Store {
|
|||
displayTrocador &&
|
||||
displayExolix &&
|
||||
displayThorChain &&
|
||||
displayMayaChain &&
|
||||
displayLetsExchange &&
|
||||
displayStealthEx;
|
||||
|
||||
|
@ -88,6 +93,9 @@ abstract class TradeFilterStoreBase with Store {
|
|||
case ExchangeProviderDescription.thorChain:
|
||||
displayThorChain = !displayThorChain;
|
||||
break;
|
||||
case ExchangeProviderDescription.mayaChain:
|
||||
displayMayaChain = !displayMayaChain;
|
||||
break;
|
||||
case ExchangeProviderDescription.letsExchange:
|
||||
displayLetsExchange = !displayLetsExchange;
|
||||
case ExchangeProviderDescription.stealthEx:
|
||||
|
@ -103,6 +111,7 @@ abstract class TradeFilterStoreBase with Store {
|
|||
displayTrocador = false;
|
||||
displayExolix = false;
|
||||
displayThorChain = false;
|
||||
displayMayaChain = false;
|
||||
displayLetsExchange = false;
|
||||
displayStealthEx = false;
|
||||
} else {
|
||||
|
@ -114,6 +123,7 @@ abstract class TradeFilterStoreBase with Store {
|
|||
displayTrocador = true;
|
||||
displayExolix = true;
|
||||
displayThorChain = true;
|
||||
displayMayaChain = true;
|
||||
displayLetsExchange = true;
|
||||
displayStealthEx = true;
|
||||
}
|
||||
|
@ -143,6 +153,8 @@ abstract class TradeFilterStoreBase with Store {
|
|||
(displayExolix && item.trade.provider == ExchangeProviderDescription.exolix) ||
|
||||
(displayThorChain &&
|
||||
item.trade.provider == ExchangeProviderDescription.thorChain) ||
|
||||
(displayMayaChain &&
|
||||
item.trade.provider == ExchangeProviderDescription.mayaChain) ||
|
||||
(displayLetsExchange &&
|
||||
item.trade.provider == ExchangeProviderDescription.letsExchange) ||
|
||||
(displayStealthEx && item.trade.provider == ExchangeProviderDescription.stealthEx))
|
||||
|
|
Loading…
Reference in a new issue