mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
fix: Cleanup balance page and balance page view_model
This commit is contained in:
parent
5c250a4322
commit
24cea6b217
2 changed files with 3 additions and 15 deletions
|
@ -237,10 +237,6 @@ class CryptoBalanceWidget extends StatelessWidget {
|
|||
additionalFiatBalance: balance.fiatAdditionalBalance,
|
||||
hasAdditionalBalance:
|
||||
dashboardViewModel.balanceViewModel.hasAdditionalBalance,
|
||||
// hasFullBalance: dashboardViewModel.balanceViewModel.hasFullBalance,
|
||||
// fullBalanceLabel: '${dashboardViewModel.balanceViewModel.fullBalanceLabel}',
|
||||
// fullBalance: balance.fullBalance,
|
||||
// fullFiatBalance: balance.fiatFullBalance,
|
||||
frozenBalance: balance.frozenBalance,
|
||||
frozenFiatBalance: balance.fiatFrozenBalance,
|
||||
currency: balance.asset,
|
||||
|
@ -372,10 +368,6 @@ class BalanceRowWidget extends StatelessWidget {
|
|||
required this.additionalFiatBalance,
|
||||
required this.frozenBalance,
|
||||
required this.frozenFiatBalance,
|
||||
// required this.fullBalanceLabel,
|
||||
// required this.fullBalance,
|
||||
// required this.fullFiatBalance,
|
||||
// required this.hasFullBalance,
|
||||
required this.currency,
|
||||
required this.hasAdditionalBalance,
|
||||
required this.isTestnet,
|
||||
|
@ -390,10 +382,6 @@ class BalanceRowWidget extends StatelessWidget {
|
|||
final String additionalFiatBalance;
|
||||
final String frozenBalance;
|
||||
final String frozenFiatBalance;
|
||||
// final String fullBalanceLabel;
|
||||
// final String fullBalance;
|
||||
// final String fullFiatBalance;
|
||||
// final bool hasFullBalance;
|
||||
final CryptoCurrency currency;
|
||||
final bool hasAdditionalBalance;
|
||||
final bool isTestnet;
|
||||
|
|
|
@ -66,7 +66,7 @@ abstract class BalanceViewModelBase with Store {
|
|||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet;
|
||||
|
||||
@computed
|
||||
bool get hasSilentPayments => wallet.type == WalletType.bitcoin;
|
||||
bool get hasSilentPayments => wallet.type == WalletType.bitcoin && !wallet.isHardwareWallet;
|
||||
|
||||
@computed
|
||||
double get price {
|
||||
|
@ -93,7 +93,7 @@ abstract class BalanceViewModelBase with Store {
|
|||
wallet.type == WalletType.tron;
|
||||
|
||||
@computed
|
||||
bool get hasAccounts => wallet.type == WalletType.monero;
|
||||
bool get hasAccounts => wallet.type == WalletType.monero || wallet.type == WalletType.wownero;
|
||||
|
||||
@computed
|
||||
SortBalanceBy get sortBalanceBy => settingsStore.sortBalanceBy;
|
||||
|
|
Loading…
Reference in a new issue