wallet @browser working again
This commit is contained in:
parent
eff20ec49a
commit
4dcd18c42f
8 changed files with 54 additions and 52 deletions
|
|
@ -6,15 +6,17 @@ angular.module('copay.home').controller('HomeController',
|
|||
|
||||
$scope.oneAtATime = true;
|
||||
|
||||
if (!$rootScope.peerId) {
|
||||
if (!$rootScope.wallet.id) {
|
||||
$location.path('signin');
|
||||
}
|
||||
|
||||
$scope.addrs = $rootScope.publicKeyRing.getAddresses();
|
||||
|
||||
|
||||
$scope.addrs = $rootScope.wallet.publicKeyRing.getAddresses();
|
||||
$scope.selectedAddr = $scope.addrs[0];
|
||||
|
||||
$scope.newAddr = function() {
|
||||
var a = $rootScope.publicKeyRing.generateAddress();
|
||||
var a = $rootScope.wallet.publicKeyRing.generateAddress();
|
||||
$scope.addrs.push({ addrStr: a.toString('hex') });
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue