mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 03:05:11 +00:00
Merge pull request #266 from cake-tech/CW-40
coded to hide available balance in hidden mode
This commit is contained in:
commit
2bdd8b98d0
1 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import 'package:cake_wallet/entities/balance_display_mode.dart';
|
||||
import 'package:cake_wallet/entities/transaction_description.dart';
|
||||
import 'package:cw_core/transaction_priority.dart';
|
||||
import 'package:cake_wallet/view_model/send/output.dart';
|
||||
|
@ -124,7 +125,12 @@ abstract class SendViewModelBase with Store {
|
|||
PendingTransaction pendingTransaction;
|
||||
|
||||
@computed
|
||||
String get balance => _wallet.balance.formattedAvailableBalance ?? '0.0';
|
||||
String get balance {
|
||||
if(_settingsStore.balanceDisplayMode == BalanceDisplayMode.hiddenBalance){
|
||||
return '---';
|
||||
}
|
||||
return _wallet.balance.formattedAvailableBalance ?? '0.0' ;
|
||||
}
|
||||
|
||||
@computed
|
||||
bool get isReadyForSend => _wallet.syncStatus is SyncedSyncStatus;
|
||||
|
|
Loading…
Reference in a new issue