add options to show the private key
This commit is contained in:
parent
2c56160e97
commit
fea90215d4
2 changed files with 13 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue