Merge pull request #51 from PhillipLangMartinez/Feature/sponsorship-list-plugin

Feature/sponsorship list plugin
This commit is contained in:
AlphaX-Projects
2022-08-21 18:41:42 +02:00
committed by GitHub
8 changed files with 1060 additions and 0 deletions

View File

@@ -622,5 +622,16 @@
"rewarddialog4":"On pressing confirm, the rewardshare will be created, but you will still need to supply the above key to a node in order to mint with the account.",
"rewarddialog5":"You are removing a reward share transaction associated with account:",
"rewarddialog6":"On pressing confirm, the rewardshare will be removed and the minting key will become invalid."
},
"sponsorshipspage": {
"schange1": "Active Sponsorships",
"schange2" : "Account Address",
"schange3" : "Total Sponsorships active",
"schange4" : "Next sponsorship ending in",
"schange5" : "Sponsor New Minter",
"schange6" : "Finished Sponsorships",
"schange7" : "Completed",
"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`
@@ -152,6 +153,21 @@ class SidenavMenu extends connect(store)(LitElement) {
>
<vaadin-icon icon="vaadin:thumbs-up" slot="icon"></vaadin-icon>
</side-menu-item>`}
<side-menu-item
label="${translate('sidemenu.rewardshare')}"
href="/app/reward-share"
>
<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:list-ol" slot="icon"></vaadin-icon>
</side-menu-item>
` : ''}
</side-menu-item>
<side-menu-item
label="${translate('sidemenu.wallets')}"

View File

@@ -45,6 +45,7 @@ export const sideMenuItemStyle = css`
overflow: hidden;
text-decoration: none;
border-bottom: 1px solid var(--item-border-color);
text-transform: uppercase;
}
#itemLink:hover {