Refactor controllers
This commit is contained in:
parent
33801e9587
commit
16091bd330
9 changed files with 50 additions and 47 deletions
|
|
@ -9,8 +9,7 @@ angular.module('copayApp.controllers').controller('AddressesController',
|
|||
$scope.loading = true;
|
||||
w.generateAddress(null, function() {
|
||||
$timeout(function() {
|
||||
controllerUtils.setSocketHandlers();
|
||||
controllerUtils.updateAddressList();
|
||||
controllerUtils.updateGlobalAddresses();
|
||||
$scope.loading = false;
|
||||
}, 1);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -57,9 +57,6 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
|
|||
return new Array(num);
|
||||
}
|
||||
|
||||
// Init socket handlers (with no wallet yet)
|
||||
controllerUtils.setSocketHandlers();
|
||||
|
||||
if ($rootScope.wallet) {
|
||||
$scope.$on('$idleWarn', function(a,countdown) {
|
||||
if (!(countdown%5))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue