mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +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(
|
Observer(
|
||||||
title: S.current.manage_nodes,
|
builder: (context) {
|
||||||
handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes),
|
if (!dashboardViewModel.hasNodes) return const SizedBox();
|
||||||
|
return Column(
|
||||||
|
children: [
|
||||||
|
SettingsCellWithArrow(
|
||||||
|
title: S.current.manage_nodes,
|
||||||
|
handler: (context) => Navigator.of(context).pushNamed(Routes.manageNodes),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
Observer(
|
Observer(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
if (!dashboardViewModel.hasPowNodes) return const SizedBox();
|
if (!dashboardViewModel.hasPowNodes) return const SizedBox();
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
SettingsCellWithArrow(
|
SettingsCellWithArrow(
|
||||||
|
|
|
@ -361,6 +361,9 @@ abstract class DashboardViewModelBase with Store {
|
||||||
|
|
||||||
ReactionDisposer? _onMoneroBalanceChangeReaction;
|
ReactionDisposer? _onMoneroBalanceChangeReaction;
|
||||||
|
|
||||||
|
@computed
|
||||||
|
bool get hasNodes => wallet.type != WalletType.lightning;
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
bool get hasPowNodes => wallet.type == WalletType.nano || wallet.type == WalletType.banano;
|
bool get hasPowNodes => wallet.type == WalletType.nano || wallet.type == WalletType.banano;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue