replaced last opened with last focused wallet

This commit is contained in:
Ivan Socolsky 2014-10-20 18:33:21 -03:00 committed by Matias Alejo Garcia
commit 37526b554e
7 changed files with 46 additions and 38 deletions

View file

@ -209,10 +209,12 @@ angular.module('copayApp.services')
preconditions.checkState(w && _.isObject(w));
$rootScope.wallet = w;
root.redirIfLogged();
root.updateBalance(w, function() {
$rootScope.$digest();
})
$rootScope.iden.profile.setLastFocusedTs(w.id, function() {
root.redirIfLogged();
root.updateBalance(w, function() {
$rootScope.$digest();
})
});
};
root.bindProfile = function($scope, iden, w) {