rm fn from more

This commit is contained in:
Matias Alejo Garcia 2014-08-21 14:57:50 -04:00
parent 291ed73916
commit fc78ae27d2
2 changed files with 3 additions and 6 deletions

View File

@ -2,14 +2,11 @@
angular.module('copayApp.controllers').controller('MoreController', angular.module('copayApp.controllers').controller('MoreController',
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils, notification) { function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils, notification) {
var w = $rootScope.wallet;
$scope.hideAdv=true; $scope.hideAdv=true;
$scope.hidePriv=true; $scope.hidePriv=true;
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
$scope.getPrivate = function() {
var w = $rootScope.wallet;
return w.privateKey.toObj().extendedPrivateKeyString;
}
$scope.downloadBackup = function() { $scope.downloadBackup = function() {
var w = $rootScope.wallet; var w = $rootScope.wallet;

View File

@ -35,7 +35,7 @@
<span ng-hide="hidePriv">Hide</span> <span ng-hide="hidePriv">Hide</span>
</a> </a>
</div> </div>
<textarea ng-hide="hidePriv" readonly>{{getPrivate()}}</textarea> <textarea ng-hide="hidePriv" readonly>{{priv}}</textarea>
</div> </div>
<div class="oh large-12 columns panel"> <div class="oh large-12 columns panel">
<h3><i class="fi-minus-circle m10r"></i> Scan Wallet Addresses </h3> <h3><i class="fi-minus-circle m10r"></i> Scan Wallet Addresses </h3>