mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 03:05:11 +00:00
disable account generation
This commit is contained in:
parent
0217c2db8b
commit
db23b28ddd
1 changed files with 10 additions and 6 deletions
|
@ -136,10 +136,11 @@ abstract class WalletAddressListViewModelBase with Store {
|
|||
_wallet = appStore.wallet!,
|
||||
selectedCurrency = walletTypeToCryptoCurrency(appStore.wallet!.type),
|
||||
_cryptoNumberFormat = NumberFormat(_cryptoNumberPattern),
|
||||
hasAccounts = appStore.wallet!.type == WalletType.monero ||
|
||||
appStore.wallet!.type == WalletType.haven ||
|
||||
hasAccounts =
|
||||
appStore.wallet!.type == WalletType.monero || appStore.wallet!.type == WalletType.haven,
|
||||
/* ||
|
||||
appStore.wallet!.type == WalletType.nano ||
|
||||
appStore.wallet!.type == WalletType.banano,
|
||||
appStore.wallet!.type == WalletType.banano,*/ // TODO: nano additional accounts disabled for now
|
||||
amount = '' {
|
||||
_init();
|
||||
}
|
||||
|
@ -275,9 +276,9 @@ abstract class WalletAddressListViewModelBase with Store {
|
|||
@computed
|
||||
bool get hasAddressList =>
|
||||
_wallet.type == WalletType.monero ||
|
||||
_wallet.type == WalletType.haven ||
|
||||
_wallet.type == WalletType.haven;/* ||
|
||||
_wallet.type == WalletType.nano ||
|
||||
_wallet.type == WalletType.banano;
|
||||
_wallet.type == WalletType.banano;*/// TODO: nano accounts are disabled for now
|
||||
|
||||
@computed
|
||||
bool get showElectrumAddressDisclaimer =>
|
||||
|
@ -299,7 +300,10 @@ abstract class WalletAddressListViewModelBase with Store {
|
|||
void _init() {
|
||||
_baseItems = [];
|
||||
|
||||
if (_wallet.type == WalletType.monero || _wallet.type == WalletType.haven || _wallet.type == WalletType.nano || _wallet.type == WalletType.banano) {
|
||||
if (_wallet.type == WalletType.monero ||
|
||||
_wallet.type == WalletType.haven ||
|
||||
_wallet.type == WalletType.nano ||
|
||||
_wallet.type == WalletType.banano) {
|
||||
_baseItems.add(WalletAccountListHeader());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue