disable account generation

This commit is contained in:
fosse 2023-08-11 09:30:40 -04:00
parent 0217c2db8b
commit db23b28ddd

View file

@ -136,10 +136,11 @@ abstract class WalletAddressListViewModelBase with Store {
_wallet = appStore.wallet!, _wallet = appStore.wallet!,
selectedCurrency = walletTypeToCryptoCurrency(appStore.wallet!.type), selectedCurrency = walletTypeToCryptoCurrency(appStore.wallet!.type),
_cryptoNumberFormat = NumberFormat(_cryptoNumberPattern), _cryptoNumberFormat = NumberFormat(_cryptoNumberPattern),
hasAccounts = appStore.wallet!.type == WalletType.monero || hasAccounts =
appStore.wallet!.type == WalletType.haven || appStore.wallet!.type == WalletType.monero || appStore.wallet!.type == WalletType.haven,
/* ||
appStore.wallet!.type == WalletType.nano || appStore.wallet!.type == WalletType.nano ||
appStore.wallet!.type == WalletType.banano, appStore.wallet!.type == WalletType.banano,*/ // TODO: nano additional accounts disabled for now
amount = '' { amount = '' {
_init(); _init();
} }
@ -275,9 +276,9 @@ abstract class WalletAddressListViewModelBase with Store {
@computed @computed
bool get hasAddressList => bool get hasAddressList =>
_wallet.type == WalletType.monero || _wallet.type == WalletType.monero ||
_wallet.type == WalletType.haven || _wallet.type == WalletType.haven;/* ||
_wallet.type == WalletType.nano || _wallet.type == WalletType.nano ||
_wallet.type == WalletType.banano; _wallet.type == WalletType.banano;*/// TODO: nano accounts are disabled for now
@computed @computed
bool get showElectrumAddressDisclaimer => bool get showElectrumAddressDisclaimer =>
@ -299,7 +300,10 @@ abstract class WalletAddressListViewModelBase with Store {
void _init() { void _init() {
_baseItems = []; _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()); _baseItems.add(WalletAccountListHeader());
} }