This commit is contained in:
parent
6f72157407
commit
de54f3aac8
6 changed files with 13 additions and 32 deletions
|
|
@ -56,21 +56,6 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
}
|
||||
});
|
||||
|
||||
$scope.done = function() {
|
||||
$rootScope.starting = false;
|
||||
$rootScope.$digest();
|
||||
};
|
||||
|
||||
|
||||
$scope.$on("$destroy", function() {
|
||||
var iden = $rootScope.iden;
|
||||
if (iden) {
|
||||
iden.removeListener('newWallet', $scope.done);
|
||||
iden.removeListener('noWallets', $scope.done);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$scope.openWithPin = function(pin) {
|
||||
|
||||
if (!pin) {
|
||||
|
|
@ -92,11 +77,8 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
$scope.openWallets = function() {
|
||||
preconditions.checkState($rootScope.iden);
|
||||
var iden = $rootScope.iden;
|
||||
|
||||
$rootScope.hideNavigation = false;
|
||||
$rootScope.starting = true;
|
||||
iden.on('newWallet', $scope.done);
|
||||
iden.on('noWallets', $scope.done);
|
||||
iden.openWallets();
|
||||
};
|
||||
|
||||
|
|
@ -169,7 +151,6 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
|
||||
// mobile
|
||||
if ($scope.isMobile && !$rootScope.hasPin) {
|
||||
$scope.done();
|
||||
_credentials = {
|
||||
email: email,
|
||||
password: password,
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ angular.module('copayApp.controllers').controller('HomeWalletController', functi
|
|||
removeWatch();
|
||||
w.removeListener('txProposalEvent', _updateTxs);
|
||||
};
|
||||
});
|
||||
});
|
||||
|
||||
$scope.setAlternativeAmount = function(w, tx, cb) {
|
||||
rateService.whenAvailable(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue