2014-11-11 16:01:33 -03:00
< div class = "backup" ng-controller = "ProfileController" >
2014-10-27 16:13:06 -03:00
< h1 class = "hide-for-large-up" > {{$root.title}}< / h1 >
2014-11-11 16:01:33 -03:00
2014-11-05 17:33:51 -03:00
< div class = "row" >
2014-11-11 16:01:33 -03:00
< div class = "large-12 columns" >
< div class = "panel" >
< h2 > < i class = "fi-download m10r" > < / i > < span translate > Backup Profile< / span > < / h2 >
< p translate class = "text-gray" > It's important to backup your profile so that you can recover it in case of disaster. The backup will include all your profile's wallets< / p >
2014-11-11 16:53:57 -03:00
< a translate class = "button primary m0" ng-click = "downloadProfileBackup()"
2014-11-11 16:01:33 -03:00
ng-show="!isSafari">Backup profile< / a >
2014-11-11 16:53:57 -03:00
< a translate class = "button primary m0" ng-click = "viewProfileBackup()"
ng-show="isSafari & & !hideViewProfileBackup">View profile backup< / a >
< div ng-show = "backupProfilePlainText" >
< textarea rows = "5" > {{backupProfilePlainText}}< / textarea >
2014-11-11 16:01:33 -03:00
< div class = "show-for-large-up" >
2014-11-11 16:53:57 -03:00
< span translate class = "size-12" > Copy to clipboard< / span > < span
class="btn-copy" clip-copy="backupProfilePlainText"> < / span >
2014-11-11 16:01:33 -03:00
< / div >
< div class = "hide-for-large-up" >
< span translate class = "size-12" > Copy this text as it is in a safe place (notepad or email)< / span >
< / div >
< / div >
< / div >
2014-10-22 15:03:28 -03:00
< / div >
< / div >
2014-11-10 16:41:07 -03:00
< div class = "line-dashed-h m20b" > < / div >
< div class = "row" ng-init = "getWallets()" >
< div class = "large-12 columns" >
2014-11-11 16:01:33 -03:00
< h2 > Manage wallets< / h2 >
2014-11-10 16:41:07 -03:00
< table width = "100%" role = "grid" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Status< / th >
< th > Balance< / th >
< th > Actions< / th >
< / tr >
< / thead >
< tbody >
< tr
data-ng-repeat="item in wallets | orderBy:'name'"
2014-11-11 10:59:05 -03:00
ng-init="isReady = item.isReady();
2014-11-11 16:53:57 -03:00
networkName = item.getNetworkName()"
ng-class="{'deleting':loading==item.id}">
2014-11-10 16:41:07 -03:00
< td > {{item.name || item.id }}< / td >
2014-11-11 10:59:05 -03:00
< td width = "120" > {{item.requiredCopayers}} of {{item.totalCopayers}} - {{networkName}}< / td >
< td width = "200" > {{isReady ? 'Complete' : 'Waiting for copayers...'}}< / td >
< td width = "200" >
2014-11-10 16:41:07 -03:00
< span ng-if = "!isReady" > -< / span >
< span ng-if = "isReady" >
{{item.balanceInfo.totalBalance || 0 |noFractionNumber}} {{item.settings.unitName}}
< / span >
< / td >
< td width = "70" class = "text-center" >
2014-11-11 16:53:57 -03:00
< div ng-show = "loading != item.id" >
< a title = "Download Backup" ng-click = "downloadWalletBackup(item)"
ng-show="!isSafari">< i class = "fi-download" > < / i > < / a >
< a title = "View Backup" ng-click = "viewWalletBackup(item)"
ng-show="isSafari">< i class = "fi-eye" > < / i > < / a >
< a title = "Delete Wallet"
class="text-warning"
ng-really-message="{{'Are you sure you want to delete the wallet'}} {{(item.name || item.id)}}"
ng-really-click="deleteWallet(item)"
ng-show="loading != item.id">< i class = "fi-trash" > < / i > < / a >
< / div >
2014-11-10 16:41:07 -03:00
< span ng-show = "loading == item.id" > < i class = "fi-bitcoin-circle icon-rotate spinner" > < / i > < / span >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
2014-11-11 16:01:33 -03:00
< / div >
2014-10-11 17:26:10 -03:00
< / div >