mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
remove manage nodes from lightning wallets
This commit is contained in:
parent
e78f17c3d9
commit
eb1654c8f0
2 changed files with 15 additions and 4 deletions
|
@ -89,14 +89,22 @@ class ConnectionSyncPage extends BasePage {
|
|||
}),
|
||||
],
|
||||
],
|
||||
SettingsCellWithArrow(
|
||||
title: S.current.manage_nodes,
|
||||
handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes),
|
||||
Observer(
|
||||
builder: (context) {
|
||||
if (!dashboardViewModel.hasNodes) return const SizedBox();
|
||||
return Column(
|
||||
children: [
|
||||
SettingsCellWithArrow(
|
||||
title: S.current.manage_nodes,
|
||||
handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
),
|
||||
Observer(
|
||||
builder: (context) {
|
||||
if (!dashboardViewModel.hasPowNodes) return const SizedBox();
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
SettingsCellWithArrow(
|
||||
|
|
|
@ -361,6 +361,9 @@ abstract class DashboardViewModelBase with Store {
|
|||
|
||||
ReactionDisposer? _onMoneroBalanceChangeReaction;
|
||||
|
||||
@computed
|
||||
bool get hasNodes => wallet.type != WalletType.lightning;
|
||||
|
||||
@computed
|
||||
bool get hasPowNodes => wallet.type == WalletType.nano || wallet.type == WalletType.banano;
|
||||
|
||||
|
|
Loading…
Reference in a new issue