various fixes
This commit is contained in:
parent
23dc09a635
commit
19d1bde546
6 changed files with 19 additions and 19 deletions
|
|
@ -62,7 +62,8 @@ angular.module('copayApp.controllers').controller('CreateController',
|
|||
$scope.error = 'Could not create wallet: ' + err;
|
||||
}
|
||||
}
|
||||
$rootScope.$digest()
|
||||
|
||||
$rootScope.$digest();
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.controllers').controller('CreateWalletController', function($scope, $rootScope) {
|
||||
|
||||
$rootScope.title = 'Create Wallet';
|
||||
});
|
||||
|
|
@ -18,14 +18,14 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
|
||||
$scope.done = function() {
|
||||
$rootScope.starting = false;
|
||||
setTimeout(function () { $rootScope.$digest(); }, 1);
|
||||
$rootScope.$digest();
|
||||
};
|
||||
|
||||
|
||||
$scope.$on("$destroy", function(){
|
||||
var iden = $rootScope.iden;
|
||||
if (iden) {
|
||||
iden.removeListener('newWallets', $scope.done );
|
||||
iden.removeListener('newWallet', $scope.done );
|
||||
iden.removeListener('noWallets', $scope.done );
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('HomeWalletController',
|
||||
function($scope, $rootScope) {
|
||||
angular.module('copayApp.controllers').controller('HomeWalletController', function($scope, $rootScope) {
|
||||
$scope.init = function() {
|
||||
$rootScope.title = 'Home';
|
||||
$scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
||||
|
||||
|
|
@ -9,5 +9,5 @@ angular.module('copayApp.controllers').controller('HomeWalletController',
|
|||
$rootScope.$watch('wallet', function() {
|
||||
$scope.addr = _.last($rootScope.wallet.getReceiveAddresses());
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue