4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

dynamic sidenav for sponsorships

This commit is contained in:
Phillip Lang Martinez 2022-08-17 01:10:51 +03:00
parent 934bdeada7
commit d1ad8e1735
2 changed files with 7 additions and 2 deletions

View File

@ -619,6 +619,7 @@
"schange5" : "Sponsor New Minter",
"schange6" : "Finished Sponsorships",
"schange7" : "Completed",
"schange8" : "Addresses"
"schange8" : "Addresses",
"schange9" : "You currently have no active sponsorships"
}
}

View File

@ -102,6 +102,7 @@ class SidenavMenu extends connect(store)(LitElement) {
renderNodeTypeMenu() {
const addressInfo = this.addressInfo;
const isMinter = addressInfo?.error !== 124 && +addressInfo?.level > 0;
const isSponsor = +addressInfo?.level >= 5
if (this.nodeType === 'lite') {
return html`
@ -158,12 +159,15 @@ class SidenavMenu extends connect(store)(LitElement) {
>
<vaadin-icon icon="vaadin:share-square" slot="icon"></vaadin-icon>
</side-menu-item>
${isSponsor ? html`
<side-menu-item
label="${translate('mintingpage.mchange35')}"
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
label="${translate('sidemenu.wallets')}"