mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-03-27 15:55:55 +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()
|
return response.json()
|
||||||
})
|
})
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const myNodeType = data.type
|
this.nodeType = data.type
|
||||||
if (myNodeType === 'light') {
|
|
||||||
this.nodeType = 'light'
|
|
||||||
} else {
|
|
||||||
this.nodeType = 'full'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error('Request failed', err);
|
console.error('Request failed', err);
|
||||||
@ -91,7 +86,7 @@ class SidenavMenu extends connect(store)(LitElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderNodeTypeMenu() {
|
renderNodeTypeMenu() {
|
||||||
if (this.nodeType === 'light') {
|
if (this.nodeType === 'lite') {
|
||||||
return html`
|
return html`
|
||||||
<side-menu-item label="${translate("sidemenu.wallets")}" href="/app/wallet" selected>
|
<side-menu-item label="${translate("sidemenu.wallets")}" href="/app/wallet" selected>
|
||||||
<vaadin-icon icon="vaadin:wallet" slot="icon"></vaadin-icon>
|
<vaadin-icon icon="vaadin:wallet" slot="icon"></vaadin-icon>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user