mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
Fixed issues when detecting lite nodes.
This commit is contained in:
parent
7f83969f46
commit
4a95c3104d
@ -78,12 +78,7 @@ class SidenavMenu extends connect(store)(LitElement) {
|
||||
return response.json()
|
||||
})
|
||||
.then(data => {
|
||||
const myNodeType = data.type
|
||||
if (myNodeType === 'light') {
|
||||
this.nodeType = 'light'
|
||||
} else {
|
||||
this.nodeType = 'full'
|
||||
}
|
||||
this.nodeType = data.type
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('Request failed', err);
|
||||
@ -91,7 +86,7 @@ class SidenavMenu extends connect(store)(LitElement) {
|
||||
}
|
||||
|
||||
renderNodeTypeMenu() {
|
||||
if (this.nodeType === 'light') {
|
||||
if (this.nodeType === 'lite') {
|
||||
return html`
|
||||
<side-menu-item label="${translate("sidemenu.wallets")}" href="/app/wallet" selected>
|
||||
<vaadin-icon icon="vaadin:wallet" slot="icon"></vaadin-icon>
|
||||
|
Loading…
x
Reference in New Issue
Block a user