Select last focus wallet

This commit is contained in:
Matias Pando 2014-11-14 10:41:05 -03:00
parent 0abb264fa6
commit d107dd129c
1 changed files with 2 additions and 10 deletions

View File

@ -30,16 +30,8 @@ angular.module('copayApp.controllers').controller('ImportProfileController',
if (err && !iden) {
$scope.error = (err.toString() || '').match('BADSTR') ? 'Bad password or corrupt profile file' : 'Unknown error';
} else {
//simulate an angular form
var data = {
email: {
$modelValue: iden.email
},
password: {
$modelValue: iden.password
}
}
identityService.open($scope, data);
var firstWallet = iden.getLastFocusedWallet();
controllerUtils.bindProfile($scope, iden, firstWallet);
}
});
};