add secret to adv options in #more

This commit is contained in:
Matias Alejo Garcia 2014-10-04 11:30:08 -03:00
commit ffe90f2ecc
5 changed files with 26 additions and 2 deletions

View file

@ -64,8 +64,11 @@ angular.module('copayApp.controllers').controller('MoreController',
$scope.hideAdv = true;
$scope.hidePriv = true;
if (w)
$scope.hideSecret = true;
if (w) {
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
$scope.secret = w.getSecret();
}
$scope.downloadBackup = function() {
backupService.download(w);