Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
fix(ui): copy mnemonic in backup screen issue #28
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedybaird committed Jun 26, 2018
1 parent 74637cd commit 336635d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/wallet-backup/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down
2 changes: 1 addition & 1 deletion app/components/wallet-backup/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<p class="lead">{{t 'wallets.backup.lead'}}</p>
<p><code>{{mnemonic seed}}</code></p>
<p>
{{#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))}}
Expand Down
7 changes: 4 additions & 3 deletions translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 336635d

Please sign in to comment.