From e43457a6ce62ce97adc444d6a47fc2811b91b757 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 30 Nov 2016 20:42:22 +0100 Subject: [PATCH] recovery page: add Parity logo --- .../CreateAccount/AccountDetails/accountDetails.js | 3 ++- js/src/modals/CreateAccount/AccountDetails/print.js | 8 +++++--- .../CreateAccount/AccountDetails/recovery-page.ejs | 9 +++++++-- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/js/src/modals/CreateAccount/AccountDetails/accountDetails.js b/js/src/modals/CreateAccount/AccountDetails/accountDetails.js index e0e0659a2..945bcc975 100644 --- a/js/src/modals/CreateAccount/AccountDetails/accountDetails.js +++ b/js/src/modals/CreateAccount/AccountDetails/accountDetails.js @@ -23,6 +23,7 @@ import Button from '../../../ui/Button'; import { createIdentityImg } from '../../../api/util/identity'; import print from './print'; import recoveryPage from './recovery-page.ejs'; +import ParityLogo from '../../../../assets/images/parity-logo-black-no-text.svg'; export default class AccountDetails extends Component { static propTypes = { @@ -89,6 +90,6 @@ export default class AccountDetails extends Component { const { address, phrase, name } = this.props; const identity = createIdentityImg(address); - print(recoveryPage({ phrase, name, identity, address })); + print(recoveryPage({ phrase, name, identity, address, logo: ParityLogo })); } } diff --git a/js/src/modals/CreateAccount/AccountDetails/print.js b/js/src/modals/CreateAccount/AccountDetails/print.js index 00a402d9d..18cddeee9 100644 --- a/js/src/modals/CreateAccount/AccountDetails/print.js +++ b/js/src/modals/CreateAccount/AccountDetails/print.js @@ -54,8 +54,10 @@ export default (html) => { setTimeout(() => { iframe.contentDocument.write(html); - onPrint(iframe.contentWindow, teardown); - iframe.contentWindow.focus(); - iframe.contentWindow.print(); + setTimeout(() => { + onPrint(iframe.contentWindow, teardown); + iframe.contentWindow.focus(); + iframe.contentWindow.print(); + }, 20); }, 0); }; diff --git a/js/src/modals/CreateAccount/AccountDetails/recovery-page.ejs b/js/src/modals/CreateAccount/AccountDetails/recovery-page.ejs index 200c429e8..bcd1a8b42 100644 --- a/js/src/modals/CreateAccount/AccountDetails/recovery-page.ejs +++ b/js/src/modals/CreateAccount/AccountDetails/recovery-page.ejs @@ -7,7 +7,7 @@ +

This is your account <%= name %>:

- symbol for the address of the account + symbol for the address of the account
<%= address %>

This is the recovery phrase: