Adds strings to translate. Fix layouts
This commit is contained in:
parent
07b6a2d4d5
commit
36e9734ea4
2 changed files with 23 additions and 23 deletions
|
|
@ -17,13 +17,13 @@
|
||||||
<span translate>Scanning wallet funds...</span>
|
<span translate>Scanning wallet funds...</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="box-notification text-warning" ng-show="paperWallet.error">
|
||||||
<div class="large-12 medium-12 columns">
|
<i class="fi-alert size-12"></i>
|
||||||
<div class="box-notification text-warning" ng-show="paperWallet.error">
|
<span>{{paperWallet.error|translate}}</span>
|
||||||
<i class="fi-alert size-12"></i>
|
</div>
|
||||||
<span>{{paperWallet.error|translate}}</span>
|
<div ng-show="!paperWallet.balance" class="row">
|
||||||
</div>
|
<div class="large-12 medium-12 columns">
|
||||||
<div ng-show="!paperWallet.balance" class="input">
|
<div class="input">
|
||||||
<label for="privateKey"><span>Paper Wallet Private Key</span></label>
|
<label for="privateKey"><span>Paper Wallet Private Key</span></label>
|
||||||
<input type="text" placeholder="{{'Paste your paper wallet private key here'|translate}}" ng-model="privateKey" id="privateKey">
|
<input type="text" placeholder="{{'Paste your paper wallet private key here'|translate}}" ng-model="privateKey" id="privateKey">
|
||||||
<div class="qr-scanner-input">
|
<div class="qr-scanner-input">
|
||||||
|
|
@ -33,12 +33,21 @@
|
||||||
<span translate>Passphrase (if you have one):</span>
|
<span translate>Passphrase (if you have one):</span>
|
||||||
</label>
|
</label>
|
||||||
<input id="passphrase" type="password" name="passphrase" placeholder="{{'Passphrase'|translate}}" ng-model="passphrase">
|
<input id="passphrase" type="password" name="passphrase" placeholder="{{'Passphrase'|translate}}" ng-model="passphrase">
|
||||||
<p ng-show="paperWallet.message" translate class="size-14 text-gray">{{paperWallet.message}}</p>
|
<p ng-show="paperWallet.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>
|
||||||
|
<button
|
||||||
|
ng-disabled="paperWallet.scanning || !privateKey"
|
||||||
|
ng-style="{'background-color':index.backgroundColor}"
|
||||||
|
class="button black round expand"
|
||||||
|
ng-click="paperWallet.createTx(privateKey, passphrase)"
|
||||||
|
translate>Scan Wallet Funds
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div ng-show="paperWallet.balance" class="row">
|
||||||
<div class="large-12 medium-12 columns" ng-show="paperWallet.balance">
|
<div class="large-12 medium-12 columns">
|
||||||
<div class="text-center m20b">
|
<div class="text-center m20b">
|
||||||
<h4 class="text-bold" translate>Funds founds</h4>
|
<h4 class="text-bold" translate>Funds founds</h4>
|
||||||
<div class="size-24">
|
<div class="size-24">
|
||||||
|
|
@ -52,20 +61,11 @@
|
||||||
ng-click="paperWallet.transaction()"
|
ng-click="paperWallet.transaction()"
|
||||||
translate>sweep wallet
|
translate>sweep wallet
|
||||||
</button>
|
</button>
|
||||||
<div class="m10t text-center">
|
<div class="text-center">
|
||||||
<div class="size-12 text-gray" translate>Funds will be transfered to</div>
|
<div class="size-12 text-gray" translate>Funds will be transfered to</div>
|
||||||
<b>{{index.alias || index.walletName}}</b>
|
<b>{{index.alias || index.walletName}}</b>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="large-12 medium-12 columns" ng-show="!paperWallet.balance" >
|
|
||||||
<button
|
|
||||||
ng-disabled="paperWallet.scanning || !privateKey"
|
|
||||||
ng-style="{'background-color':index.backgroundColor}"
|
|
||||||
class="button black round expand"
|
|
||||||
ng-click="paperWallet.createTx(privateKey, passphrase)"
|
|
||||||
translate>Scan Wallet Funds
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="extra-margin-bottom"></div>
|
<div class="extra-margin-bottom"></div>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
angular.module('copayApp.controllers').controller('paperWalletController',
|
angular.module('copayApp.controllers').controller('paperWalletController',
|
||||||
function($scope, $http, $timeout, profileService, go, addressService) {
|
function($scope, $http, $timeout, profileService, go, addressService, isCordova) {
|
||||||
self = this;
|
self = this;
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
var rawTx;
|
var rawTx;
|
||||||
if (isCordova) self.message = "Decrypting a paper wallet could take around 5 minutes on this device. please be patient and keep the app open."
|
self.isCordova = !isCordova;
|
||||||
|
|
||||||
self.onQrCodeScanned = function(data) {
|
self.onQrCodeScanned = function(data) {
|
||||||
$scope.privateKey = data;
|
$scope.privateKey = data;
|
||||||
|
|
@ -82,4 +82,4 @@ angular.module('copayApp.controllers').controller('paperWalletController',
|
||||||
rawtx: rawTx
|
rawtx: rawTx
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue