Merge pull request #4644 from JDonadio/bug/scanned-data
Shows scanned data - Import from QR
This commit is contained in:
commit
75b4455358
3 changed files with 4 additions and 21 deletions
|
|
@ -50,19 +50,11 @@
|
|||
<span translate>Type the Recovery Phrase (usually 12 words)</span>:
|
||||
</label>
|
||||
|
||||
<div class="qr-scanner-input-import" ng-show="!dataFromQR">
|
||||
<div class="qr-scanner-input-import">
|
||||
<qr-scanner on-scan="processWalletInfo(data)"></qr-scanner>
|
||||
</div>
|
||||
|
||||
<div class="lock-fromQR" ng-show="dataFromQR">
|
||||
<div class="left m10l">
|
||||
<i class="fi-lock color-greeni"></i>
|
||||
</div>
|
||||
<div class="right icon-close-import" ng-click="dataFromQR = null">
|
||||
<i class="icon-close-circle size-14"></i>
|
||||
</div>
|
||||
</div>
|
||||
<textarea class="form-control m10t" ng-disabled="dataFromQR" name="words" ng-model="words" rows="2" autocapitalize="off" spellcheck="false"></textarea>
|
||||
<textarea class="form-control m10t" name="words" ng-model="words" rows="3" autocapitalize="off" spellcheck="false"></textarea>
|
||||
|
||||
<div class="m10t oh" ng-init="hideAdv=true">
|
||||
<a class="button outline light-gray expand tiny p10i" ng-click="hideAdv=!hideAdv">
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
var reader = new FileReader();
|
||||
var defaults = configService.getDefaults();
|
||||
var errors = bwcService.getErrors();
|
||||
$scope.dataFromQR = null;
|
||||
$scope.bwsurl = defaults.bws.url;
|
||||
$scope.derivationPath = derivationPathHelper.default;
|
||||
$scope.account = 1;
|
||||
|
|
@ -36,7 +35,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
$scope.processWalletInfo = function(code) {
|
||||
if (!code) return;
|
||||
|
||||
$scope.dataFromQR = null;
|
||||
$scope.importErr = false;
|
||||
$scope.error = null;
|
||||
var parsedCode = code.split('|');
|
||||
|
|
@ -62,8 +60,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
$scope.testnetEnabled = info.network == 'testnet' ? true : false;
|
||||
|
||||
$timeout(function() {
|
||||
$scope.words = null;
|
||||
$scope.dataFromQR = info.data;
|
||||
$scope.words = info.data;
|
||||
$rootScope.$apply();
|
||||
}, 1);
|
||||
};
|
||||
|
|
@ -252,7 +249,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
opts.networkName = pathData.networkName;
|
||||
opts.derivationStrategy = pathData.derivationStrategy;
|
||||
|
||||
var words = form.words.$modelValue || $scope.dataFromQR;
|
||||
var words = form.words.$modelValue || null;
|
||||
$scope.error = null;
|
||||
|
||||
if (!words) {
|
||||
|
|
|
|||
|
|
@ -895,12 +895,6 @@ ul.manage li {
|
|||
background-color: #1ABC9C;
|
||||
}
|
||||
|
||||
.lock-fromQR {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.tx-proposal i {
|
||||
padding: .1rem .3rem;
|
||||
background-color: #A5B2BF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue