add advanced options - refresh QR
This commit is contained in:
parent
51bee061b1
commit
1c1196ee84
3 changed files with 44 additions and 14 deletions
|
|
@ -12,7 +12,8 @@ angular.module('copayApp.controllers').controller('exportController',
|
|||
$scope.error = null;
|
||||
|
||||
$scope.init = function(state) {
|
||||
$scope.QROpts = false;
|
||||
$scope.noSignEnabled = false;
|
||||
$scope.showAdvanced = false;
|
||||
prevState = state || 'walletHome';
|
||||
|
||||
fingerprintService.check(fc, function(err) {
|
||||
|
|
@ -35,6 +36,13 @@ angular.module('copayApp.controllers').controller('exportController',
|
|||
});
|
||||
};
|
||||
|
||||
$scope.noSignEnabledChange = function() {
|
||||
$scope.exportWalletInfo = encodeWalletInfo();
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
}, 1);
|
||||
};
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
walletService.lock(fc);
|
||||
});
|
||||
|
|
@ -60,7 +68,7 @@ angular.module('copayApp.controllers').controller('exportController',
|
|||
};
|
||||
var info;
|
||||
|
||||
if (c.canSign()) {
|
||||
if (c.canSign() && !$scope.noSignEnabled) {
|
||||
if (c.mnemonic) {
|
||||
info = {
|
||||
type: encodingType.mnemonic,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue