mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-18 16:55:58 +00:00
parent
752b6bbebf
commit
740f466e77
2 changed files with 13 additions and 8 deletions
|
@ -91,8 +91,9 @@ abstract class TransactionFilterStoreBase with Store {
|
|||
(displayOutgoing && item.transaction.direction == TransactionDirection.outgoing) ||
|
||||
(displayIncoming &&
|
||||
item.transaction.direction == TransactionDirection.incoming &&
|
||||
!bitcoin!.txIsReceivedSilentPayment(item.transaction)) ||
|
||||
(displaySilentPayments && bitcoin!.txIsReceivedSilentPayment(item.transaction));
|
||||
!(bitcoin?.txIsReceivedSilentPayment(item.transaction) ?? false)) ||
|
||||
(displaySilentPayments &&
|
||||
(bitcoin?.txIsReceivedSilentPayment(item.transaction) ?? false));
|
||||
} else if (item is AnonpayTransactionListItem) {
|
||||
allowed = displayIncoming;
|
||||
}
|
||||
|
|
|
@ -90,11 +90,12 @@ abstract class DashboardViewModelBase with Store {
|
|||
value: () => transactionFilterStore.displayOutgoing,
|
||||
caption: S.current.outgoing,
|
||||
onChanged: transactionFilterStore.toggleOutgoing),
|
||||
FilterItem(
|
||||
value: () => transactionFilterStore.displaySilentPayments,
|
||||
caption: S.current.silent_payments,
|
||||
onChanged: transactionFilterStore.toggleSilentPayments,
|
||||
),
|
||||
if (appStore.wallet!.type == WalletType.bitcoin)
|
||||
FilterItem(
|
||||
value: () => transactionFilterStore.displaySilentPayments,
|
||||
caption: S.current.silent_payments,
|
||||
onChanged: transactionFilterStore.toggleSilentPayments,
|
||||
),
|
||||
// FilterItem(
|
||||
// value: () => false,
|
||||
// caption: S.current.transactions_by_date,
|
||||
|
@ -435,7 +436,10 @@ abstract class DashboardViewModelBase with Store {
|
|||
}
|
||||
|
||||
@computed
|
||||
bool get hasMweb => wallet.type == WalletType.litecoin && (Platform.isIOS || Platform.isAndroid) && !wallet.isHardwareWallet;
|
||||
bool get hasMweb =>
|
||||
wallet.type == WalletType.litecoin &&
|
||||
(Platform.isIOS || Platform.isAndroid) &&
|
||||
!wallet.isHardwareWallet;
|
||||
|
||||
@computed
|
||||
bool get showMwebCard => hasMweb && settingsStore.mwebCardDisplay && !mwebEnabled;
|
||||
|
|
Loading…
Reference in a new issue