add advanced options - refresh QR

This commit is contained in:
Javier 2016-06-29 15:18:49 -03:00
commit 1c1196ee84
3 changed files with 44 additions and 14 deletions

View file

@ -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,