Wallet backup: copy to clipboard or sent by email

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-22 14:34:36 -03:00
commit e3d260883c
3 changed files with 44 additions and 5 deletions

View file

@ -56,19 +56,26 @@
<button class="primary expand" ng-click="downloadWalletBackup()" ng-disabled="loading"
ng-show="!isSafari && !isCordova"><i class="fi-download"></i> Download backup</button>
<button class="primary expand" ng-click="viewWalletBackup()" ng-disabled="loading"
ng-show="isSafari || isCordova"><i class="fi-eye"></i> View Backup</button>
ng-show="isSafari && !isCordova"><i class="fi-eye"></i> View Backup</button>
<div ng-show="isCordova">
<h4>Backup options</h4>
<button class="primary expand"
ng-click="copyWalletBackup()"><i class="fi-clipboard-pencil"></i> Copy to clipboard</button>
<button class="primary expand"
ng-click="sendWalletBackup()"><i class="fi-mail"></i> Send by email</button>
</div>
</div>
</div>
<div class="row" ng-show="backupWalletPlainText">
<div class="row m20b" ng-show="backupWalletPlainText">
<div class="large-12 columns">
<h3>Copy backup in a safe place</h3>
<div class="input">
<textarea class="show-for-large-up" readonly rows="7">{{backupWalletPlainText}}</textarea>
<textarea class="hide-for-large-up" rows="12">{{backupWalletPlainText}}</textarea>
<i class="icon-compose"></i>
</div>
<div translate class="m10t size-12 text-gray text-right">
<div translate class="size-12 text-gray text-right">
<i class="icon-compose"></i>
Copy this text as it is in a safe place (notepad or email)
</div>
</div>