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

Added copy paste

This commit is contained in:
AlphaX-Projects 2023-05-30 19:15:31 +02:00 committed by GitHub
parent 68d59b9dfd
commit ea3b8986f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import { Epml } from '../../../epml.js'
import '../components/ButtonIconCopy.js'
import { use, translate, registerTranslateConfig } from 'lit-translate'
import { blocksNeed } from '../../utils/blocks-needed.js'
import isElectron from 'is-electron'
registerTranslateConfig({
loader: (lang) => fetch(`/language/${lang}.json`).then((res) => res.json()),
@ -13,8 +14,8 @@ import '@material/mwc-button'
import '@material/mwc-textfield'
import '@vaadin/button'
import { pageStyles } from './become-minter-css.src.js'
import './components/not-sponsored.src'
import './components/yes-sponsored.src'
import './components/not-sponsored.js'
import './components/yes-sponsored.js'
const parentEpml = new Epml({ type: 'WINDOW', source: window.parent })
@ -126,6 +127,13 @@ class BecomeMinter extends LitElement {
async firstUpdated() {
await this.atMount()
if (!isElectron()) {
} else {
window.addEventListener('contextmenu', (event) => {
event.preventDefault()
window.parent.electronAPI.showMyMenu()
})
}
}
async getRewardShareRelationship(recipientAddress) {