From 336635d47c23ac2be8ef8fc7ad2ac382d76c6e72 Mon Sep 17 00:00:00 2001 From: kennedybaird Date: Tue, 26 Jun 2018 11:12:48 +0700 Subject: [PATCH] fix(ui): copy mnemonic in backup screen issue #28 --- app/components/wallet-backup/component.js | 2 +- app/components/wallet-backup/template.hbs | 2 +- translations/en-us.yaml | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/components/wallet-backup/component.js b/app/components/wallet-backup/component.js index e4cf3358..e0211e7f 100644 --- a/app/components/wallet-backup/component.js +++ b/app/components/wallet-backup/component.js @@ -28,7 +28,7 @@ export default Component.extend({ hasConfirmed: false, @action - copySeed() { + copyMnemonic() { const message = this.get('intl').t('wallets.backup.copied'); this.get('flashMessages').success(message); }, diff --git a/app/components/wallet-backup/template.hbs b/app/components/wallet-backup/template.hbs index 07b0c470..27eed7ef 100644 --- a/app/components/wallet-backup/template.hbs +++ b/app/components/wallet-backup/template.hbs @@ -2,7 +2,7 @@

{{t 'wallets.backup.lead'}}

{{mnemonic seed}}

- {{#copy-button class="btn btn-sm btn-outline-danger" clipboardText=seed success=(action 'copySeed')}} + {{#copy-button class="btn btn-sm btn-outline-danger" clipboardText=seed success=(action 'copyMnemonic')}} {{fa-icon 'copy'}} {{t 'wallets.backup.copy'}} {{/copy-button}} {{#bs-button size='sm' type='outline-primary' class="ml-1" onClick=(action 'downloadMnemonic' (mnemonic seed))}} diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 4dd206b7..373a5405 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -81,14 +81,15 @@ wallets: unlockWallet: 'Unlock Wallet' invalidPassword: 'Invalid password!' backup: - title: 'Backup Seed' + title: 'Backup Mnemonic' lead: "Here's your new easy to recognize seed mnemonic for your new wallet:" - copy: 'Copy Seed' - copied: 'Seed copied to clipboard!' + copy: 'Copy Mnemonic' + copied: 'Mnemonic copied to clipboard!' download: 'Download' help: > Adhere to best practices by physically writing your seed mnemonic on a piece of paper and storing it in a secure location for safe retrieval should you later lose your seed. + Your 64 character hex seed can be accessed later through settings. confirm: "Are you sure you've written down your mnemonic?" import: title: 'Import Wallet'