mirror of https://github.com/BTCPrivate/copay.git
add options to show the private key
This commit is contained in:
parent
2c56160e97
commit
fea90215d4
|
@ -1,8 +1,14 @@
|
|||
'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;
|
||||
backupService.download(w);
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue