mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +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,
|
additionalFiatBalance: balance.fiatAdditionalBalance,
|
||||||
hasAdditionalBalance:
|
hasAdditionalBalance:
|
||||||
dashboardViewModel.balanceViewModel.hasAdditionalBalance,
|
dashboardViewModel.balanceViewModel.hasAdditionalBalance,
|
||||||
// hasFullBalance: dashboardViewModel.balanceViewModel.hasFullBalance,
|
|
||||||
// fullBalanceLabel: '${dashboardViewModel.balanceViewModel.fullBalanceLabel}',
|
|
||||||
// fullBalance: balance.fullBalance,
|
|
||||||
// fullFiatBalance: balance.fiatFullBalance,
|
|
||||||
frozenBalance: balance.frozenBalance,
|
frozenBalance: balance.frozenBalance,
|
||||||
frozenFiatBalance: balance.fiatFrozenBalance,
|
frozenFiatBalance: balance.fiatFrozenBalance,
|
||||||
currency: balance.asset,
|
currency: balance.asset,
|
||||||
|
@ -372,10 +368,6 @@ class BalanceRowWidget extends StatelessWidget {
|
||||||
required this.additionalFiatBalance,
|
required this.additionalFiatBalance,
|
||||||
required this.frozenBalance,
|
required this.frozenBalance,
|
||||||
required this.frozenFiatBalance,
|
required this.frozenFiatBalance,
|
||||||
// required this.fullBalanceLabel,
|
|
||||||
// required this.fullBalance,
|
|
||||||
// required this.fullFiatBalance,
|
|
||||||
// required this.hasFullBalance,
|
|
||||||
required this.currency,
|
required this.currency,
|
||||||
required this.hasAdditionalBalance,
|
required this.hasAdditionalBalance,
|
||||||
required this.isTestnet,
|
required this.isTestnet,
|
||||||
|
@ -390,10 +382,6 @@ class BalanceRowWidget extends StatelessWidget {
|
||||||
final String additionalFiatBalance;
|
final String additionalFiatBalance;
|
||||||
final String frozenBalance;
|
final String frozenBalance;
|
||||||
final String frozenFiatBalance;
|
final String frozenFiatBalance;
|
||||||
// final String fullBalanceLabel;
|
|
||||||
// final String fullBalance;
|
|
||||||
// final String fullFiatBalance;
|
|
||||||
// final bool hasFullBalance;
|
|
||||||
final CryptoCurrency currency;
|
final CryptoCurrency currency;
|
||||||
final bool hasAdditionalBalance;
|
final bool hasAdditionalBalance;
|
||||||
final bool isTestnet;
|
final bool isTestnet;
|
||||||
|
|
|
@ -66,7 +66,7 @@ abstract class BalanceViewModelBase with Store {
|
||||||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet;
|
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
bool get hasSilentPayments => wallet.type == WalletType.bitcoin;
|
bool get hasSilentPayments => wallet.type == WalletType.bitcoin && !wallet.isHardwareWallet;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
double get price {
|
double get price {
|
||||||
|
@ -93,7 +93,7 @@ abstract class BalanceViewModelBase with Store {
|
||||||
wallet.type == WalletType.tron;
|
wallet.type == WalletType.tron;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
bool get hasAccounts => wallet.type == WalletType.monero;
|
bool get hasAccounts => wallet.type == WalletType.monero || wallet.type == WalletType.wownero;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
SortBalanceBy get sortBalanceBy => settingsStore.sortBalanceBy;
|
SortBalanceBy get sortBalanceBy => settingsStore.sortBalanceBy;
|
||||||
|
|
Loading…
Reference in a new issue