add options to show the private key

This commit is contained in:
Matias Alejo Garcia 2014-08-20 14:06:37 -04:00
parent 2c56160e97
commit fea90215d4
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,13 @@
'use strict';
angular.module('copayApp.controllers').controller('BackupController',
function($scope, $rootScope, backupService, walletFactory, controllerUtils) {
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils) {
var s = ($location.search()).showPrivate;
if (s) {
var w = $rootScope.wallet;
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
}
$scope.downloadBackup = function() {
var w = $rootScope.wallet;

View File

@ -17,5 +17,10 @@
</div>
</div>
</div>
<div class="oh large-12 columns panel" ng-if="priv">
<h3><i class="fi-minus-circle m10r"></i> Master Private Key </h3>
<p class="large-8 columns text-gray">
{{priv}}
</div>
</div>