diff --git a/core/src/components/settings-view/export-keys.js b/core/src/components/settings-view/export-keys.js index 81f84bfd..0066a4ed 100644 --- a/core/src/components/settings-view/export-keys.js +++ b/core/src/components/settings-view/export-keys.js @@ -1,6 +1,8 @@ import {css, html, LitElement} from 'lit' import {connect} from 'pwa-helpers' import {store} from '../../store.js' +import { Epml } from '../../epml.js' +import { addTradeBotRoutes } from '../../tradebot/addTradeBotRoutes.js' import {get, translate} from 'lit-translate' import snackbar from '../../functional-components/snackbar.js' import FileSaver from 'file-saver' @@ -9,6 +11,8 @@ import '@material/mwc-dialog' import '@material/mwc-button' import '@material/mwc-icon' +const parentEpml = new Epml({ type: 'WINDOW', source: window.parent }) + class ExportKeys extends connect(store)(LitElement) { static get properties() { return { @@ -19,21 +23,26 @@ class ExportKeys extends connect(store)(LitElement) { dogePMK: { type: String }, dgbPMK: { type: String }, rvnPMK: { type: String }, + arrrPMK: { type: String }, btcWALLET: { type: String }, ltcWALLET: { type: String }, dogeWALLET: { type: String }, dgbWALLET: { type: String }, rvnWALLET: { type: String }, + arrrWALLET: { type: String }, btcName: { type: String }, ltcName: { type: String }, dogeName: { type: String }, dgbName: { type: String }, rvnName: { type: String }, + arrrName: { type: String }, btcShort: { type: String }, ltcShort: { type: String }, dogeShort: { type: String }, dgbShort: { type: String }, rvnShort: { type: String }, + arrrShort: { type: String }, + enableArrr: { type: Boolean }, dWalletAddress: { type: String }, dPrivateKey: { type: String }, dCoinName: { type: String }, @@ -48,7 +57,7 @@ class ExportKeys extends connect(store)(LitElement) { --mdc-theme-surface: var(--white); --mdc-dialog-content-ink-color: var(--black); --mdc-dialog-min-width: 500px; - --mdc-dialog-max-width: 500px; + --mdc-dialog-max-width: 1000px; --lumo-primary-text-color: rgb(0, 167, 245); --lumo-primary-color-50pct: rgba(0, 167, 245, 0.5); --lumo-primary-color-10pct: rgba(0, 167, 245, 0.1); @@ -60,9 +69,8 @@ class ExportKeys extends connect(store)(LitElement) { } .center-box { - position: absolute; - width: 100%; - top: 50%; + position: relative; + top: 45%; left: 50%; transform: translate(-50%, 0%); text-align: center; @@ -71,6 +79,7 @@ class ExportKeys extends connect(store)(LitElement) { .sub-main { position: relative; text-align: center; + height: auto; width: 100%; } @@ -78,9 +87,9 @@ class ExportKeys extends connect(store)(LitElement) { text-align: center; display: inline-block; min-width: 400px; - margin-bottom: 10px; - margin-left: 10px; - margin-top: 20px; + margin-bottom: 10px; + margin-left: 10px; + margin-top: 20px; } .export-button { @@ -135,6 +144,11 @@ class ExportKeys extends connect(store)(LitElement) { this.rvnWALLET = store.getState().app.selectedAddress.rvnWallet.address this.rvnName = 'Ravencoin' this.rvnShort = 'rvn' + this.arrrPMK = '' + this.arrrWALLET = '' + this.arrrName = 'Pirate Chain' + this.arrrShort = 'arrr' + this.enableArrr = false this.dWalletAddress = '' this.dPrivateKey = '' this.dCoinName = '' @@ -143,8 +157,8 @@ class ExportKeys extends connect(store)(LitElement) { render() { return html` -
${translate("settings.exp4")}
@@ -181,6 +195,12 @@ class ExportKeys extends connect(store)(LitElement) {