simplify receive and wallet home tab
This commit is contained in:
parent
6f1342ea27
commit
3edec5e597
7 changed files with 159 additions and 122 deletions
|
|
@ -4,13 +4,12 @@ angular.module('copayApp.controllers').controller('HomeWalletController', functi
|
|||
$scope.init = function() {
|
||||
|
||||
$rootScope.title = 'Home';
|
||||
$scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
||||
|
||||
// This is necesarry, since wallet can change in homeWallet, without running init() again.
|
||||
$rootScope.$watch('wallet', function() {
|
||||
if ($rootScope.wallet && $rootScope.wallet.isComplete()) {
|
||||
$scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
||||
}
|
||||
});
|
||||
// $rootScope.$watch('wallet', function() {
|
||||
// if ($rootScope.wallet && $rootScope.wallet.isComplete()) {
|
||||
// $scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
||||
// }
|
||||
// });
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue