commit
e9eb311339
12 changed files with 165 additions and 231 deletions
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('CopayersController',
|
||||
function($scope, $rootScope, $location, controllerUtils) {
|
||||
$rootScope.title = 'Copayers';
|
||||
if (!$rootScope.wallet.isReady()) {
|
||||
$rootScope.title = 'Waiting copayers for ' + $rootScope.wallet.getName();
|
||||
}
|
||||
$scope.loading = false;
|
||||
|
||||
$scope.goToWallet = function() {
|
||||
controllerUtils.updateAddressList();
|
||||
|
|
|
|||
|
|
@ -6,17 +6,9 @@ angular.module('copayApp.controllers').controller('HomeWalletController',
|
|||
|
||||
$rootScope.title = 'Home';
|
||||
|
||||
|
||||
if ($rootScope.addrInfos) {
|
||||
$scope.address = $rootScope.addrInfos[0];
|
||||
}
|
||||
|
||||
$scope.copayersList = function() {
|
||||
if ($rootScope.wallet) {
|
||||
$scope.copayers = $rootScope.wallet.getRegisteredPeerIds();
|
||||
}
|
||||
return $scope.copayers;
|
||||
}
|
||||
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -264,6 +264,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
|
||||
$scope.$apply(function() {
|
||||
$scope.sendForm.address.$setViewValue(data);
|
||||
$scope.sendForm.address.$render();
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue