Merge pull request #1602 from isocolsky/fixes

Small usability fix
This commit is contained in:
Matias Alejo Garcia 2014-10-30 14:14:32 -03:00
commit fdf466ca45

View file

@ -54,6 +54,18 @@ angular.module('copayApp.controllers').controller('MoreController',
}
}
$scope.hideAdv = true;
$scope.hidePriv = true;
$scope.hideSecret = true;
if (w) {
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
$scope.secret = w.getSecret();
}
setTimeout(function() {
$scope.$digest();
}, 1);
$scope.save = function() {
w.changeSettings({
unitName: $scope.selectedUnit.shortName,
@ -66,15 +78,6 @@ angular.module('copayApp.controllers').controller('MoreController',
controllerUtils.updateBalance();
};
$scope.hideAdv = true;
$scope.hidePriv = true;
$scope.hideSecret = true;
if (w) {
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
$scope.secret = w.getSecret();
}
$scope.downloadBackup = function() {
backupService.walletDownload(w);
}