2015-10-02 11:27:17 -03:00
< div
class="topbar-container"
ng-include="'views/includes/topbar.html'"
2015-10-02 11:58:20 -03:00
ng-init="titleSection='Sweep paper wallet'; goBackToState = 'preferencesAdvanced';">
2015-10-02 11:27:17 -03:00
< / div >
2015-10-08 13:29:31 -03:00
< div class = "content preferences" ng-controller = "paperWalletController as paperWallet" >
< h4 ng-show = "!paperWallet.error" > < / h4 >
2015-10-02 16:04:11 -03:00
< div class = "onGoingProcess" ng-show = "paperWallet.scanning || paperWallet.sending" >
2015-10-02 15:11:35 -03:00
< div class = "onGoingProcess-content" ng-style = "{'background-color':index.backgroundColor}" >
< div class = "spinner" >
< div class = "rect1" > < / div >
< div class = "rect2" > < / div >
< div class = "rect3" > < / div >
< div class = "rect4" > < / div >
< div class = "rect5" > < / div >
2015-10-02 13:24:43 -03:00
< / div >
2015-10-02 16:04:11 -03:00
< span ng-show = "paperWallet.scanning" translate > Scanning wallet funds...< / span >
< span ng-show = "paperWallet.sending" translate > Sending funds...< / span >
2015-10-02 15:11:35 -03:00
< / div >
< / div >
2015-10-02 15:23:44 -03:00
< div class = "box-notification text-warning" ng-show = "paperWallet.error" >
< i class = "fi-alert size-12" > < / i >
< span > {{paperWallet.error|translate}}< / span >
< / div >
2015-10-08 13:29:31 -03:00
< form ng-show = "!paperWallet.balance" class = "oh" >
< div class = "row" >
< div class = "large-12 medium-12 columns" >
< div class = "input" >
< label for = "inputData" translate > Paper Wallet Private Key< / label >
< input type = "text" placeholder = "{{'Paste your paper wallet private key here'|translate}}" ng-model = "inputData" id = "inputData" ng-change = "paperWallet.onData(inputData)" >
< div class = "qr-scanner-input" >
< qr-scanner on-scan = "paperWallet.onQrCodeScanned(data)" > < / qr-scanner >
< / div >
< div ng-show = "paperWallet.isPkEncrypted" >
< label for = "passphrase" >
< span translate > Passphrase< / span >
< / label >
< input id = "passphrase" type = "password" name = "passphrase" placeholder = "{{'Passphrase'|translate}}" ng-model = "passphrase" >
< p ng-show = "index.isCordova" translate class = "size-12 text-gray" >
Decrypting a paper wallet could take around 5 minutes on this device. please be patient and keep the app open.
< / p >
< / div >
< button
ng-disabled="paperWallet.scanning || !paperWallet.scannedKey"
ng-style="{'background-color':index.backgroundColor}"
class="button black round expand"
ng-click="paperWallet.scanFunds()"
translate>Scan Wallet Funds
< / button >
< / div >
< / div >
2015-10-02 11:27:17 -03:00
< / div >
2015-10-08 13:29:31 -03:00
< / form >
2015-10-02 15:23:44 -03:00
< div ng-show = "paperWallet.balance" class = "row" >
< div class = "large-12 medium-12 columns" >
2015-10-02 15:11:35 -03:00
< div class = "text-center m20b" >
2015-10-05 10:00:03 -03:00
< h4 class = "text-bold" translate > Funds found< / h4 >
2015-10-02 15:11:35 -03:00
< div class = "size-24" >
2015-10-02 17:29:57 -03:00
{{paperWallet.balance}}
2015-10-02 15:11:35 -03:00
< / div >
< / div >
2015-10-02 13:24:43 -03:00
< button
2015-10-07 17:49:34 -03:00
ng-disabled="paperWallet.sending || paperWallet.balanceSat < = 0"
2015-10-02 13:24:43 -03:00
ng-style="{'background-color':index.backgroundColor}"
class="button black round expand"
2015-10-07 16:48:52 -03:00
ng-click="paperWallet.sweepWallet()"
2015-10-02 16:04:11 -03:00
translate>Sweep Wallet
2015-10-02 13:24:43 -03:00
< / button >
2015-10-02 11:27:17 -03:00
< / div >
< / div >
2015-10-08 11:58:55 -03:00
< div class = "text-center size-12 text-gray" >
2015-11-12 09:52:26 -03:00
< span translate > Funds will be transferred to< / span > :
2015-10-08 11:58:55 -03:00
< b > {{index.alias || index.walletName}}< / b >
< / div >
2015-10-02 11:27:17 -03:00
< / div >
< div class = "extra-margin-bottom" > < / div >