mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-14 19:25:50 +00:00
dynamic sidenav for sponsorships
This commit is contained in:
parent
934bdeada7
commit
d1ad8e1735
@ -619,6 +619,7 @@
|
|||||||
"schange5" : "Sponsor New Minter",
|
"schange5" : "Sponsor New Minter",
|
||||||
"schange6" : "Finished Sponsorships",
|
"schange6" : "Finished Sponsorships",
|
||||||
"schange7" : "Completed",
|
"schange7" : "Completed",
|
||||||
"schange8" : "Addresses"
|
"schange8" : "Addresses",
|
||||||
|
"schange9" : "You currently have no active sponsorships"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -102,6 +102,7 @@ class SidenavMenu extends connect(store)(LitElement) {
|
|||||||
renderNodeTypeMenu() {
|
renderNodeTypeMenu() {
|
||||||
const addressInfo = this.addressInfo;
|
const addressInfo = this.addressInfo;
|
||||||
const isMinter = addressInfo?.error !== 124 && +addressInfo?.level > 0;
|
const isMinter = addressInfo?.error !== 124 && +addressInfo?.level > 0;
|
||||||
|
const isSponsor = +addressInfo?.level >= 5
|
||||||
|
|
||||||
if (this.nodeType === 'lite') {
|
if (this.nodeType === 'lite') {
|
||||||
return html`
|
return html`
|
||||||
@ -158,12 +159,15 @@ class SidenavMenu extends connect(store)(LitElement) {
|
|||||||
>
|
>
|
||||||
<vaadin-icon icon="vaadin:share-square" slot="icon"></vaadin-icon>
|
<vaadin-icon icon="vaadin:share-square" slot="icon"></vaadin-icon>
|
||||||
</side-menu-item>
|
</side-menu-item>
|
||||||
|
${isSponsor ? html`
|
||||||
<side-menu-item
|
<side-menu-item
|
||||||
label="${translate('mintingpage.mchange35')}"
|
label="${translate('mintingpage.mchange35')}"
|
||||||
href="/app/sponsorship-list"
|
href="/app/sponsorship-list"
|
||||||
>
|
>
|
||||||
<vaadin-icon icon="vaadin:share-square" slot="icon"></vaadin-icon>
|
<vaadin-icon icon="vaadin:list-ol" slot="icon"></vaadin-icon>
|
||||||
</side-menu-item>
|
</side-menu-item>
|
||||||
|
` : ''}
|
||||||
|
|
||||||
</side-menu-item>
|
</side-menu-item>
|
||||||
<side-menu-item
|
<side-menu-item
|
||||||
label="${translate('sidemenu.wallets')}"
|
label="${translate('sidemenu.wallets')}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user